/* HAMOTECH Gaming Theme - Cyberpunk/Gaming Aesthetic
/* ---------------------------------------------------------- */

/* Gaming Color Palette */
:root {
    /* Primary Gaming Colors */
    --gaming-cyan: #00f0ff;
    --gaming-electric-blue: #0080ff;
    --gaming-purple: #9d00ff;
    --gaming-magenta: #ff00aa;
    --gaming-neon-green: #00ff88;
    --gaming-orange: #ff6600;
    
    /* Dark Theme Base */
    --gaming-bg-dark: #0a0a0f;
    --gaming-bg-card: #12121a;
    --gaming-bg-elevated: #1a1a25;
    --gaming-border-glow: rgba(0, 240, 255, 0.3);
    
    /* Text Colors */
    --gaming-text-primary: #ffffff;
    --gaming-text-secondary: rgba(255, 255, 255, 0.7);
    --gaming-text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gaming-gradient-primary: linear-gradient(135deg, var(--gaming-cyan), var(--gaming-electric-blue));
    --gaming-gradient-accent: linear-gradient(135deg, var(--gaming-purple), var(--gaming-magenta));
    --gaming-gradient-success: linear-gradient(135deg, var(--gaming-neon-green), var(--gaming-cyan));
    
    /* Glow Effects */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(157, 0, 255, 0.5), 0 0 40px rgba(157, 0, 255, 0.3);
    --glow-text: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* Override base theme with gaming dark mode */
body {
    background: var(--gaming-bg-dark);
    color: var(--gaming-text-primary);
    min-height: 100vh;
    position: relative;
}

/* Polynesian 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.12;
    pointer-events: none;
    z-index: -2;
}

/* Cyberpunk Overlay with Grid */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.8) 50%, rgba(10, 10, 15, 0.9) 100%),
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Navigation Gaming Style */
.gh-navigation {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gaming-border-glow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.gh-navigation .nav a {
    color: var(--gaming-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: var(--gaming-gradient-primary);
    transition: width 0.3s ease;
}

.gh-navigation .nav a:hover {
    color: var(--gaming-cyan);
    text-shadow: var(--glow-text);
    opacity: 1;
}

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

/* Logo Styling */
.gh-navigation-logo {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.gh-navigation-logo:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px var(--gaming-cyan));
}

/* Post Cards Gaming Style */
.gh-card {
    background: var(--gaming-bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    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: var(--gaming-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gh-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.15);
}

.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(--gaming-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(--gaming-text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.gh-card:hover .gh-card-title {
    color: var(--gaming-cyan);
}

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

/* Tags - Gaming Badges */
.gh-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gaming-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gh-card-tag:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--gaming-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Badge System - Multiple Badge Types */
.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: pulse-badge 2s ease-in-out infinite;
}

/* Featured Badge - Purple/Magenta */
.badge-featured {
    background: linear-gradient(135deg, #9d00ff, #ff00aa);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.6), 0 0 40px rgba(157, 0, 255, 0.3);
}

/* Popular Badge - Gold/Orange */
.badge-popular {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 140, 0, 0.3);
    color: #1a1a25;
}

/* Hot Badge - Red/Orange */
.badge-hot {
    background: linear-gradient(135deg, #ff4500, #ff6600);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6), 0 0 40px rgba(255, 102, 0, 0.3);
}

/* New Badge - Green/Cyan */
.badge-new {
    background: linear-gradient(135deg, #00ff88, #00f0ff);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 240, 255, 0.3);
    color: #1a1a25;
}

/* Trending Badge - Blue/Purple */
.badge-trending {
    background: linear-gradient(135deg, #0080ff, #9d00ff);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.6), 0 0 40px rgba(157, 0, 255, 0.3);
}

/* Exclusive Badge - Diamond Blue */
.badge-exclusive {
    background: linear-gradient(135deg, #00d4ff, #0080ff);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 128, 255, 0.3);
}

/* Must Read Badge - Pink */
.badge-mustread {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 0 40px rgba(255, 105, 180, 0.3);
}

/* Review Badge - Cyan */
.badge-review {
    background: linear-gradient(135deg, #00f0ff, #0080ff);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 128, 255, 0.3);
}

/* Guide Badge - Green */
.badge-guide {
    background: linear-gradient(135deg, #00c853, #00ff88);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
    color: #1a1a25;
}

/* News Badge - Blue */
.badge-news {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6), 0 0 40px rgba(0, 188, 212, 0.3);
}

/* Update Badge - Orange/Yellow */
.badge-update {
    background: linear-gradient(135deg, #ff9800, #ffeb3b);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6), 0 0 40px rgba(255, 235, 59, 0.3);
    color: #1a1a25;
}

/* Esports Badge - Gold/Red */
.badge-esports {
    background: linear-gradient(135deg, #ffd700, #ff4500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 69, 0, 0.3);
    color: #1a1a25;
}

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

/* Old featured badge class for backwards compatibility */
.gh-card-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #9d00ff, #ff00aa);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.6), 0 0 40px rgba(157, 0, 255, 0.3);
    z-index: 10;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

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

/* Header Section Gaming Style */
.gh-header {
    background: var(--gaming-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(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(157, 0, 255, 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, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.85) 100%
    );
    pointer-events: none;
}

.gh-header.is-classic.has-image::after {
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(157, 0, 255, 0.08) 0%, transparent 40%);
    z-index: 2;
}

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

.gh-header.is-classic.has-image .gh-header-title {
    color: var(--gaming-text-primary);
    text-shadow: 0 0 60px rgba(0, 240, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gh-header-title {
    color: var(--gaming-text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 0 60px rgba(0, 240, 255, 0.3);
}

/* CTA Section - Search Bar Gaming Style */
.gh-cta {
    background: var(--gaming-bg-elevated);
    border-top: 1px solid var(--gaming-border-glow);
    border-bottom: 1px solid var(--gaming-border-glow);
    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(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

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

/* Search Form Gaming Style */
.gh-form.gh-search-form,
.gh-form {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
    max-width: 600px;
}

/* Search form on cover image */
.gh-header.is-classic.has-image .gh-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 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(0, 240, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.gh-header.is-classic.has-image .gh-form-input {
    color: var(--gaming-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(--gaming-cyan);
}
}

.gh-form.gh-search-form:hover,
.gh-form:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.gh-form.gh-search-form:focus-within,
.gh-form:focus-within {
    border-color: var(--gaming-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
}

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

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

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

/* Footer Gaming Style */
.gh-footer {
    background: var(--gaming-bg-dark);
    border-top: 1px solid var(--gaming-border-glow);
    padding-top: 60px;
    position: relative;
}

.gh-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gaming-gradient-primary);
    opacity: 0.5;
}

.gh-footer-bar {
    border-color: rgba(0, 240, 255, 0.1);
    padding: 40px 0;
}

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

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

.gh-footer-menu .nav a:hover {
    color: var(--gaming-cyan);
    text-shadow: var(--glow-text);
}

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

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

.hamotech-link:hover {
    color: var(--gaming-text-primary) !important;
    text-shadow: var(--glow-text);
    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 Gaming Style */
.gh-article {
    background: var(--gaming-bg-card);
    border-radius: 16px;
    padding: 48px;
    margin: 0 auto;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

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

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

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

/* Content Styling */
.gh-content {
    color: var(--gaming-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(--gaming-text-primary);
}

.gh-content a {
    color: var(--gaming-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

.gh-content a:hover {
    border-bottom-color: var(--gaming-cyan);
    text-shadow: var(--glow-text);
    opacity: 1;
}

.gh-content blockquote {
    border-left: 4px solid var(--gaming-cyan);
    background: rgba(0, 240, 255, 0.05);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gaming-text-primary);
}

.gh-content pre,
.gh-content code {
    background: var(--gaming-bg-elevated);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 8px;
}

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

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

.gh-content hr {
    border: none;
    height: 1px;
    background: var(--gaming-gradient-primary);
    opacity: 0.3;
    margin: 48px 0;
}

/* Featured Posts Section */
.gh-featured-feed {
    background: var(--gaming-bg-elevated);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.gh-featured-header {
    color: var(--gaming-cyan);
    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 Gaming Style */
.gh-button {
    background: var(--gaming-gradient-primary);
    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(0, 240, 255, 0.3);
}

.gh-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
    opacity: 1;
}

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

/* Pagination Gaming 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(--gaming-bg-elevated);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--gaming-text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.gh-pagination a:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--gaming-cyan);
    color: var(--gaming-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    opacity: 1;
}

/* Author Page Gaming Style */
.gh-author-image {
    border: 3px solid var(--gaming-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

.gh-author-image:hover {
    box-shadow: var(--glow-cyan);
}

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

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

/* Tag Page Gaming Style */
.gh-tag-header {
    background: var(--gaming-bg-elevated);
    padding: 48px 0;
    border-bottom: 1px solid var(--gaming-border-glow);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--gaming-gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gaming-cyan);
}

/* Selection Style */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--gaming-text-primary);
}

/* Loading Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
    }
}

.loading {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 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;
    }
    
    .gh-navigation,
    .gh-footer {
        display: none;
    }
}
