/* CannaFarm - Static Site Styles (migrated from WordPress theme) */

/* ========== RESET / BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ========== LAYOUT ========== */
.cf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.cf-page-content {
    min-height: 60vh;
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}
.cf-page-content h1 {
    font-size: 28px;
    margin-bottom: 24px;
}
.cf-page-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 16px;
}
.cf-page-content a {
    color: #4CAF50;
}
.cf-page-content a:hover {
    text-decoration: underline;
}

/* ========== CUSTOM HEADER ========== */
.cf-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #000;
    border-bottom: 1px solid #1a1a1a;
}
.cf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
}

/* Logo */
.cf-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
    flex-shrink: 0;
}
.cf-header-logo-img {
    width: 32px;
    height: 32px;
}
.cf-header-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

/* Nav links (desktop) */
.cf-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cf-nav-link {
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.cf-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

/* Dropdown nav */
.cf-nav-dropdown {
    position: relative;
}
.cf-nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: inherit;
}
.cf-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    min-width: 160px;
    padding: 6px 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.cf-nav-dropdown:hover .cf-nav-dropdown-menu,
.cf-nav-dropdown:focus-within .cf-nav-dropdown-menu {
    display: block;
}
.cf-nav-dropdown-item {
    display: block;
    padding: 9px 18px;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.cf-nav-dropdown-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.cf-nav-dropdown-item--main {
    color: #4ade80 !important;
    font-weight: 700;
}
.cf-nav-dropdown-item--main:hover {
    background: rgba(74,222,128,0.08);
}
.cf-nav-dropdown-sep {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 0;
}

/* Right section: auth + burger */
.cf-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cf-nav-auth {
    position: relative;
}
.cf-nav-auth-mobile {
    display: none;
}

/* Burger (hidden on desktop) */
.cf-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.cf-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.cf-nav-open .cf-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.cf-nav-open .cf-burger span:nth-child(2) {
    opacity: 0;
}
.cf-nav-open .cf-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO SECTION ========== */
.cf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.cf-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.cf-hero-video video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.cf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}
.cf-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 24px;
}
.cf-hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
}
.cf-hero-content h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0 0 20px;
}
.cf-hero-content h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 6px;
    margin: 0 0 16px;
}
.cf-hero-content .cf-hero-sub {
    color: #666;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 0;
}
.cf-hero-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 48px;
    background: #4CAF50;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.cf-hero-cta:hover {
    background: #43a047;
    transform: scale(1.04);
}

/* Video fade edges */
.cf-hero::before,
.cf-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}
.cf-hero::before {
    top: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.cf-hero::after {
    bottom: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

/* ========== TEASER SECTION (2-col) ========== */
.cf-teaser {
    background: #000;
    padding: 60px 0;
}
.cf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.cf-teaser-card {
    padding: 40px;
}
.cf-teaser-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}
.cf-teaser-card h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 12px;
}
.cf-teaser-card p {
    color: #999;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========== FEATURES SECTION (3-col) ========== */
.cf-features {
    background: #080808;
    padding: 80px 0;
    position: relative;
}
.cf-features-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/cannfarm-cannabis-farm-spiel-app-game-traktor-bauernhof.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
}
.cf-features-heading {
    text-align: center;
    margin-bottom: 48px;
}
.cf-features-heading h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #4ade80;
    margin: 0 0 12px;
}
.cf-features-heading p {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}
.cf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    position: relative;
}
.cf-feature {
    padding: 32px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 2px solid rgba(74,222,128,0.4);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.cf-feature:hover {
    background: rgba(255,255,255,0.05);
    border-top-color: #4ade80;
}
.cf-feature h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #fff;
}
.cf-feature p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ========== MINI-GAME CARDS ========== */
.cf-minigame-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    position: relative;
}
.cf-minigame-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,0.07);
}
.cf-minigame-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.cf-minigame-card:hover .cf-minigame-card-bg {
    transform: scale(1.05);
}
.cf-minigame-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.cf-minigame-card-content {
    position: relative;
    z-index: 2;
    padding: 28px 24px;
    text-align: center;
}
.cf-minigame-card-content h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px;
}
.cf-minigame-card-content p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* ========== NAV PRIMARY ========== */
.cf-nav-primary {
    color: #4ade80 !important;
}

/* ========== HERO CLEAN ========== */
.cf-hero-content h1 {
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 16px;
    margin: 0 0 40px;
}

/* ========== 4-COL MINIGAME GRID ========== */
.cf-minigame-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.cf-minigame-card--main {
    border-top: 2px solid #4ade80;
}

/* ========== GAME GRID (8 cards, clean black) ========== */
.cf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cf-game-card {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 20px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s;
}

.cf-game-card:hover {
    border-color: rgba(74,222,128,0.4);
    transform: translateY(-3px);
}

.cf-game-card--main {
    border-top: 2px solid #4ade80;
}

.cf-game-card-tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: #4ade80;
    text-transform: uppercase;
    font-weight: 600;
}

.cf-game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cf-game-card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    flex: 1;
}

.cf-game-card-btn {
    margin-top: 12px;
    background: #4ade80;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 10px 0;
    border-radius: 6px;
    text-align: center;
}

@media (max-width: 900px) {
    .cf-game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .cf-game-grid { grid-template-columns: 1fr; }
}

/* ========== TAG & NACHT VIDEO Z-INDEX FIX ========== */
#section-video2 {
    position: relative;
    z-index: 1;
}

/* ========== FOOTER ========== */
#cannafarm-footer-wrap {
    background: transparent;
    position: relative;
    z-index: 20;
}
#cannafarm-footer-art {
    text-align: center;
    line-height: 0;
    margin: 0;
    padding: 0;
    margin-top: -350px;
    pointer-events: none;
}
#cannafarm-footer-art img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}
#cannafarm-socket {
    background: #000;
    border-top: 1px solid #1a1a1a;
    padding: 14px 20px;
    text-align: center;
}
.cannafarm-socket-inner {
    font-size: 12px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.cannafarm-socket-copy {
    color: #555;
}
.cannafarm-socket-sep {
    margin: 0 8px;
    color: #333;
}
#cannafarm-socket a {
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
#cannafarm-socket a:hover {
    color: #4CAF50 !important;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 767px) {
    .cf-header-inner {
        padding: 0 16px;
        height: 54px;
    }
    .cf-header-logo-text {
        font-size: 16px;
    }
    .cf-burger {
        display: flex;
    }
    .cf-nav-auth {
        display: none;
    }
    .cf-header-nav {
        display: none;
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 9998;
    }
    .cf-nav-open .cf-header-nav {
        display: flex;
    }
    .cf-nav-link {
        font-size: 20px;
        padding: 14px 24px;
    }
    .cf-nav-auth-mobile {
        display: block;
        margin-top: 16px;
    }
    .cf-auth-widget--mobile-clone {
        display: block !important;
    }
    .cf-hero-video {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    .cf-hero-content h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    .cf-hero-content h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    .cf-hero-logo {
        max-width: 200px;
    }
    .cf-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cf-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cf-minigame-grid,
    .cf-minigame-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cf-minigame-card {
        min-height: 240px;
    }
    .cf-teaser-card {
        padding: 24px 16px;
    }
    .cf-feature {
        padding: 24px 20px;
    }
    #cannafarm-footer-art {
        margin-top: -120px;
    }
}

/* ========== LANGUAGE TOGGLE ========== */
html[data-lang="en"] .t-de { display: none !important; }
html[data-lang="de"] .t-en { display: none !important; }
html:not([data-lang]) .t-en { display: none !important; }

.cf-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}
.cf-lang-btn {
    padding: 5px 10px;
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cf-lang-btn.active {
    background: #4CAF50;
    color: #fff;
}
.cf-lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: #ccc;
}

/* ========== SECTION WRAPPER ========== */
.cf-section {
    padding: 80px 0 60px;
    min-height: 60vh;
}

/* ========== BUTTONS ========== */
.cf-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}
.cf-btn-primary {
    background: #4CAF50;
    color: #fff !important;
}
.cf-btn-primary:hover {
    background: #43a047;
    transform: translateY(-1px);
}
.cf-btn-secondary {
    background: #333;
    color: #fff !important;
}
.cf-btn-secondary:hover {
    background: #444;
}
.cf-btn-lg {
    padding: 16px 48px;
    font-size: 18px;
    letter-spacing: 2px;
}

/* ========== DASHBOARD TITLE (shared by dashboard + leaderboard) ========== */
.cf-dashboard-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 8px;
    color: #fff;
}
.cf-dashboard-sub {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin: 0 0 32px;
}

/* ========== LEADERBOARD ========== */
.cf-lb-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cf-lb-tab {
    padding: 8px 18px;
    background: #1a1a1a;
    color: #ccc !important;
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.cf-lb-tab:hover {
    background: #222;
    border-color: #4CAF50;
}
.cf-lb-tab.active {
    background: #4CAF50;
    color: #fff !important;
    border-color: #4CAF50;
}
.cf-lb-table-wrap {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
}
.cf-lb-loading,
.cf-lb-empty,
.cf-lb-error {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}
.cf-lb-error {
    color: #ef5350;
}
.cf-lb-table {
    width: 100%;
    border-collapse: collapse;
}
.cf-lb-table thead th {
    background: #1a1a1a;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #222;
}
.cf-lb-table thead th:last-child {
    text-align: right;
}
.cf-lb-row {
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.15s;
}
.cf-lb-row:hover {
    background: rgba(76, 175, 80, 0.05);
}
.cf-lb-row:last-child {
    border-bottom: none;
}
.cf-lb-rank {
    padding: 14px 16px;
    font-weight: 700;
    color: #666;
    width: 50px;
}
.cf-lb-name {
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
}
.cf-lb-value {
    padding: 14px 16px;
    text-align: right;
    color: #4CAF50;
    font-weight: 700;
    font-size: 16px;
}
.cf-lb-gold .cf-lb-rank { color: #FFD700; font-size: 18px; }
.cf-lb-silver .cf-lb-rank { color: #C0C0C0; font-size: 17px; }
.cf-lb-bronze .cf-lb-rank { color: #CD7F32; font-size: 16px; }
.cf-lb-gold .cf-lb-name { color: #FFD700; }
.cf-lb-silver .cf-lb-name { color: #C0C0C0; }
.cf-lb-bronze .cf-lb-name { color: #CD7F32; }

/* ========== SHARE BUTTONS ========== */
.cf-share-section {
    background: #0a0a0a;
    padding: 48px 0;
    text-align: center;
}
.cf-share-section h2 {
    font-size: 1.4em;
    color: #4ade80;
    margin: 0 0 8px;
}
.cf-share-section p {
    color: #888;
    font-size: 0.9em;
    margin: 0 0 20px;
}
.cf-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cf-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}
.cf-share-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.cf-share-btn--wa { background: #25D366; }
.cf-share-btn--tw { background: #1DA1F2; }
.cf-share-btn--fb { background: #1877F2; }
.cf-share-btn--copy { background: #555; }
.cf-share-btn--copy.copied { background: #4CAF50; }

@media screen and (max-width: 500px) {
    .cannafarm-socket-inner {
        gap: 4px 0;
    }
}
