/* ==========================================================================
   FISHING GAMES - Main Stylesheet
   https://www.fishinggames.us
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --color-primary: #2980b9;
    --color-primary-dark: #1a5276;
    --color-secondary: #f1c40f;
    --color-dark: #1a1a2e;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-main: 'Open Sans', Arial, sans-serif;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background: var(--color-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 46px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    gap: 5px;
}

.nav a {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 25px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
}

.breadcrumb a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.6;
}

/* ==========================================================================
   PAGE TITLES
   ========================================================================== */
.page-title {
    color: var(--color-white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-intro {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    margin-bottom: 25px;
    font-style: italic;
}

/* ==========================================================================
   GAME CARDS GRID (Homepage & Category)
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.game-card a {
    display: block;
}

.game-card-thumb {
    width: 100%;
    aspect-ratio: 240 / 125;
    overflow: hidden;
    background: var(--color-light);
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.05);
}

.game-card-title {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    border-top: 1px solid #eee;
}

.game-card:hover .game-card-title {
    color: var(--color-primary);
}

/* ==========================================================================
   GAME PAGE - Single Game
   ========================================================================== */
.game-wrapper {
    background: var(--color-primary-dark);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 25px;
}

.game-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #154360;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-container object,
.game-container embed,
.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-tag {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.game-tag:hover {
    background: rgba(255,255,255,0.25);
}

.play-count {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.content-section {
    background: var(--color-primary-dark);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    color: var(--color-white);
}

.content-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.content-section h3 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--color-secondary);
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.95;
}

.content-section a {
    color: var(--color-secondary);
    font-weight: 600;
}

.content-section a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RELATED GAMES
   ========================================================================== */
.related-section {
    margin-bottom: 30px;
    background: var(--color-primary-dark);
    border-radius: var(--radius);
    padding: 25px;
}

.related-section h2 {
    color: var(--color-secondary);
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.related-grid .game-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.related-grid .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.related-grid .game-card-thumb {
    width: 100%;
    height: 125px;
}

.related-grid .game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-grid .game-card-title {
    padding: 15px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    background: var(--color-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   RESPONSIVE - Tablet
   ========================================================================== */
@media (max-width: 992px) {
    .nav a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: left var(--transition);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card-title {
        font-size: 12px;
        padding: 10px 8px;
    }

    .game-info-bar {
        flex-direction: column;
        gap: 12px;
    }

    .content-section {
        padding: 20px 15px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 36px;
    }

    .games-grid {
        gap: 10px;
    }

    .game-card-title {
        font-size: 11px;
        padding: 8px 6px;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
