/* HAMOTECH Polynesian Theme - Modern Island Vibes
/* Traditional Tattoo Design Style
/* ---------------------------------------------------------- */

/* Polynesian Color Palette */
:root {
    /* Ocean & Nature Colors */
    --poly-ocean-deep: #0a1628;
    --poly-ocean-mid: #0f2744;
    --poly-ocean-light: #1a3a5c;
    --poly-sand: #d4a574;
    --poly-sand-light: #e8c9a0;
    --poly-coral: #ff6b5b;
    --poly-sunset: #ff8c42;
    --poly-palm: #2d5a27;
    --poly-teal: #20b2aa;
    --poly-gold: #d4af37;
    
    /* Tapa/Tattoo Brown Tones */
    --poly-tapa-dark: #2c1810;
    --poly-tapa-brown: #4a3728;
    --poly-tapa-light: #8b6914;
    
    /* Background */
    --poly-bg-dark: #0a1628;
    --poly-bg-card: #0f2744;
    --poly-bg-elevated: #1a3a5c;
    
    /* Text Colors */
    --poly-text-primary: #ffffff;
    --poly-text-secondary: rgba(255, 255, 255, 0.8);
    --poly-text-muted: rgba(255, 255, 255, 0.6);
    
    /* Accent */
    --poly-accent: var(--poly-sand);
    --poly-accent-hover: var(--poly-sand-light);
    
    /* Borders */
    --poly-border: rgba(212, 165, 116, 0.2);
    --poly-border-hover: rgba(212, 165, 116, 0.4);
}

/* Polynesian Tattoo Pattern Background */
body {
    background-color: var(--poly-bg-dark);
    color: var(--poly-text-primary);
    min-height: 100vh;
    position: relative;
}

/* Beautiful Samoan Tattoo Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/polynesian-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    pointer-events: none;
    z-index: -2;
}

/* Dark Overlay for Better Readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(15, 39, 68, 0.75) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Navigation Polynesian Style */
.gh-navigation {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--poly-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.gh-navigation .nav a {
    color: var(--poly-text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
}

.gh-navigation .nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--poly-sand), var(--poly-coral));
    transition: width 0.3s ease;
}

.gh-navigation .nav a:hover {
    color: var(--poly-sand);
    opacity: 1;
}

.gh-navigation .nav a:hover::after {
    width: 100%;
}

/* Logo Styling */
.gh-navigation-logo {
    transition: all 0.3s ease;
}

.gh-navigation-logo:hover {
    filter: brightness(1.2);
}

/* Post Cards Polynesian Style */
.gh-card {
    background: var(--poly-bg-card);
    border: 1px solid var(--poly-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.gh-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--poly-sand), var(--poly-coral), var(--poly-sunset));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gh-card:hover {
    transform: translateY(-8px);
    border-color: var(--poly-border-hover);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 165, 116, 0.1);
}

.gh-card:hover::before {
    opacity: 1;
}

/* Card Image */
.gh-card-image {
    position: relative;
    overflow: hidden;
}

.gh-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--poly-bg-card), transparent);
    pointer-events: none;
}

.gh-card-image img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gh-card:hover .gh-card-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Card Content */
.gh-card-wrapper {
    padding: 24px;
}

.gh-card-title {
    color: var(--poly-text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.gh-card:hover .gh-card-title {
    color: var(--poly-sand);
}

.gh-card-excerpt {
    color: var(--poly-text-secondary);
    line-height: 1.6;
}

/* Tags - Island Style Badges */
.gh-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--poly-sand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gh-card-tag:hover {
    background: rgba(212, 165, 116, 0.25);
    border-color: var(--poly-sand);
}

/* Badge System - Polynesian Style */
.gh-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* Featured Badge - Sunset Gradient */
.badge-featured {
    background: linear-gradient(135deg, var(--poly-coral), var(--poly-sunset));
    box-shadow: 0 4px 15px rgba(255, 107, 91, 0.4);
}

/* Popular Badge - Gold */
.badge-popular {
    background: linear-gradient(135deg, var(--poly-gold), #f4cf47);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    color: #1a1a25;
}

/* Hot Badge - Coral/Red */
.badge-hot {
    background: linear-gradient(135deg, #ff4500, var(--poly-coral));
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

/* New Badge - Teal/Ocean */
.badge-new {
    background: linear-gradient(135deg, var(--poly-teal), #40e0d0);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
}

/* Trending Badge - Ocean Blue */
.badge-trending {
    background: linear-gradient(135deg, var(--poly-ocean-light), var(--poly-teal));
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.4);
}

/* Exclusive Badge - Palm Green */
.badge-exclusive {
    background: linear-gradient(135deg, var(--poly-palm), #4a7c45);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

/* Must Read Badge - Sand */
.badge-mustread {
    background: linear-gradient(135deg, var(--poly-sand), var(--poly-sand-light));
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    color: #1a1a25;
}

/* Review Badge - Teal */
.badge-review {
    background: linear-gradient(135deg, var(--poly-teal), #5fd3d3);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.4);
}

/* Guide Badge - Palm Green */
.badge-guide {
    background: linear-gradient(135deg, #228b22, var(--poly-palm));
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.4);
}

/* News Badge - Ocean */
.badge-news {
    background: linear-gradient(135deg, var(--poly-ocean-light), #2980b9);
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.4);
}

/* Update Badge - Sunset Orange */
.badge-update {
    background: linear-gradient(135deg, var(--poly-sunset), #ffa500);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    color: #1a1a25;
}

/* Esports Badge - Gold/Coral */
.badge-esports {
    background: linear-gradient(135deg, var(--poly-gold), var(--poly-coral));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    color: #1a1a25;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Old featured badge class for backwards compatibility */
.gh-card-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--poly-coral), var(--poly-sunset));
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 91, 0.4);
    z-index: 10;
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* Author & Meta */
.gh-card-author,
.gh-card-meta {
    color: var(--poly-text-muted);
    font-size: 1.3rem;
}

.gh-card-author-name {
    color: var(--poly-text-secondary);
    font-weight: 600;
}

/* Header Section Polynesian Style */
.gh-header {
    background: var(--poly-bg-elevated);
    position: relative;
}

.gh-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(32, 178, 170, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.gh-header .gh-header-inner {
    position: relative;
    z-index: 2;
}

/* Cover Image Styling */
.gh-header.is-classic.has-image {
    background: transparent;
}

.gh-header.is-classic.has-image .gh-header-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gh-header.is-classic.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.5) 0%,
        rgba(10, 22, 40, 0.6) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
    pointer-events: none;
}

.gh-header.is-classic.has-image::after {
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(32, 178, 170, 0.08) 0%, transparent 40%);
    z-index: 2;
}

.gh-header.is-classic.has-image .gh-header-inner {
    z-index: 3;
    color: var(--poly-text-primary);
}

.gh-header.is-classic.has-image .gh-header-title {
    color: var(--poly-text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.gh-header-title {
    color: var(--poly-text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* CTA Section - Search Bar Polynesian Style */
.gh-cta {
    background: var(--poly-bg-elevated);
    border-top: 2px solid var(--poly-border);
    border-bottom: 2px solid var(--poly-border);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.gh-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gh-cta-title {
    color: var(--poly-text-primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.gh-cta-description {
    color: var(--poly-text-secondary);
}

/* Search Form Polynesian Style */
.gh-form.gh-search-form,
.gh-form {
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 50px;
    transition: all 0.3s ease;
    max-width: 600px;
}

.gh-form.gh-search-form:hover,
.gh-form:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.4);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.1);
}

.gh-form.gh-search-form:focus-within,
.gh-form:focus-within {
    border-color: var(--poly-sand);
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.2);
}

.gh-form-input {
    color: var(--poly-text-primary);
    background: transparent;
}

.gh-form-input::placeholder,
button.gh-form-input {
    color: var(--poly-text-muted);
}

.gh-form > svg {
    color: var(--poly-sand);
    opacity: 0.7;
}

/* Search form on cover image */
.gh-header.is-classic.has-image .gh-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(10px);
}

.gh-header.is-classic.has-image .gh-form:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.15);
}

.gh-header.is-classic.has-image .gh-form-input {
    color: var(--poly-text-primary);
}

.gh-header.is-classic.has-image .gh-form-input::placeholder,
.gh-header.is-classic.has-image button.gh-form-input {
    color: rgba(255, 255, 255, 0.7);
}

.gh-header.is-classic.has-image .gh-form > svg {
    color: var(--poly-sand);
}

/* Footer Polynesian Style */
.gh-footer {
    background: var(--poly-bg-dark);
    border-top: 2px solid var(--poly-border);
    padding-top: 60px;
    position: relative;
}

.gh-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--poly-sand), var(--poly-coral), var(--poly-teal), var(--poly-sand));
}

.gh-footer-bar {
    border-color: var(--poly-border);
    padding: 40px 0;
}

.gh-footer-logo {
    color: var(--poly-text-primary);
}

.gh-footer-menu .nav a {
    color: var(--poly-text-secondary);
    transition: all 0.3s ease;
}

.gh-footer-menu .nav a:hover {
    color: var(--poly-sand);
}

.gh-footer-copyright {
    color: var(--poly-text-muted);
}

/* HAMOTECH Branding Link - Island Style */
.hamotech-link {
    color: var(--poly-sand) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
}

.hamotech-link:hover {
    color: var(--poly-sand-light) !important;
    opacity: 1 !important;
}

.hamotech-link::before {
    content: '🌴';
    margin-right: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamotech-link:hover::before {
    opacity: 1;
}

/* Post/Article Page Polynesian Style */
.gh-article {
    background: var(--poly-bg-card);
    border-radius: 16px;
    padding: 48px;
    margin: 0 auto;
    border: 1px solid var(--poly-border);
}

.gh-article-title {
    color: var(--poly-text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gh-article-excerpt {
    color: var(--poly-text-secondary);
    font-size: 1.25em;
    line-height: 1.6;
}

.gh-article-meta {
    color: var(--poly-text-muted);
}

/* Content Styling */
.gh-content {
    color: var(--poly-text-secondary);
    line-height: 1.8;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    color: var(--poly-text-primary);
}

.gh-content a {
    color: var(--poly-sand);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
}

.gh-content a:hover {
    border-bottom-color: var(--poly-sand);
    opacity: 1;
}

.gh-content blockquote {
    border-left: 4px solid var(--poly-sand);
    background: rgba(212, 165, 116, 0.08);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--poly-text-primary);
}

.gh-content pre,
.gh-content code {
    background: var(--poly-bg-elevated);
    border: 1px solid var(--poly-border);
    border-radius: 8px;
}

.gh-content pre {
    padding: 20px;
}

.gh-content :not(pre) > code {
    padding: 2px 8px;
    color: var(--poly-sand);
    font-size: 0.9em;
}

.gh-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--poly-sand), transparent);
    margin: 48px 0;
}

/* Featured Posts Section */
.gh-featured-feed {
    background: var(--poly-bg-elevated);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--poly-border);
}

.gh-featured-header {
    color: var(--poly-sand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gh-featured-header::before {
    content: '🌺';
}

/* Buttons Polynesian Style */
.gh-button {
    background: linear-gradient(135deg, var(--poly-sand), var(--poly-coral));
    border: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.gh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    opacity: 1;
}

.gh-button:active {
    transform: translateY(0);
}

/* Pagination Polynesian Style */
.gh-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

.gh-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--poly-bg-elevated);
    border: 1px solid var(--poly-border);
    border-radius: 8px;
    color: var(--poly-text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.gh-pagination a:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--poly-sand);
    color: var(--poly-sand);
    opacity: 1;
}

/* Author Page Polynesian Style */
.gh-author-image {
    border: 3px solid var(--poly-sand);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
    transition: all 0.3s ease;
}

.gh-author-image:hover {
    box-shadow: 0 0 40px rgba(212, 165, 116, 0.3);
}

.gh-author-name {
    color: var(--poly-text-primary);
}

.gh-author-bio {
    color: var(--poly-text-secondary);
}

/* Tag Page Polynesian Style */
.gh-tag-header {
    background: var(--poly-bg-elevated);
    padding: 48px 0;
    border-bottom: 2px solid var(--poly-border);
}

.gh-tag-name {
    color: var(--poly-text-primary);
    font-weight: 800;
}

/* Scrollbar Polynesian Style */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--poly-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--poly-sand), var(--poly-coral));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--poly-sand);
}

/* Selection Style */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: var(--poly-text-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gh-article {
        padding: 24px;
        border-radius: 0;
    }
    
    .gh-card:hover {
        transform: translateY(-4px);
    }
    
    .gh-cta {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before,
    body::after {
        display: none;
    }
    
    .gh-navigation,
    .gh-footer {
        display: none;
    }
}
