/* ==========================================================================
   COMMUNITY.CSS // HUB & SOCIAL STYLESHEET
   ========================================================================== */

/* ==========================================
   01 // LOCAL VARIABLES & BASE LAYOUT
   ========================================== */
#side-community {
    --local-accent: #f39c12;
    --neon-orange: #f39c12;
    --rust-orange: #e67e22;
    --master-gold: #f1c40f;
    --accent-green: #2ecc71;
    --term-green: #00ff41;
    background-color: #0d0d0b;
    background-image: radial-gradient(circle at 2px 2px, rgba(243, 156, 18, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    color: #e0e0e0;
}

    #side-community h1,
    #side-community h2 {
        color: var(--local-accent);
    }

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.comm-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.community-identity .section-divider {
    color: var(--neon-orange);
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    margin-bottom: 30px;
}

#side-community .floating-block {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 25px;
}

/* Utils */
.neon-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    margin: 0;
}

/* ==========================================
   02 // USER CARD & ACHIEVEMENTS
   ========================================== */
.user-card-new {
    background: rgba(20, 15, 10, 0.8);
    border: 1px solid var(--rust-orange);
    padding: 25px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.user-meta {
    display: flex;
    align-items: center;
}

.rank-badge {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.1);
    padding: 10px;
    margin-right: 20px;
}

/* Controls */
.card-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.control-icon {
    color: var(--neon-orange);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    user-select: none;
}

    .control-icon:hover {
        opacity: 1;
        transform: scale(1.2);
        text-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
    }

.logout-icon:hover {
    color: #e74c3c;
}

/* XP Bar */
.xp-bar-bg {
    background: #333;
    height: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

.xp-bar-fill {
    background: var(--local-accent);
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--local-accent);
}

/* Achievement Nodes */
.achievement-track {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px dashed rgba(243, 156, 18, 0.2);
    position: relative;
}

.ach-node {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    filter: grayscale(1);
    opacity: 0.3;
    transition: 0.3s;
}

    .ach-node.active {
        filter: grayscale(0);
        opacity: 1;
        border-color: var(--neon-orange);
        box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
        background: rgba(243, 156, 18, 0.1);
    }

/* Milestone Action */
.milestone-action-container {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-milestone {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 136, 0, 0.05);
    border: 1px solid var(--neon-orange);
    color: var(--neon-orange);
    padding: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
}

    .btn-milestone:hover:not(:disabled) {
        background: var(--neon-orange);
        color: #000;
        box-shadow: 0 0 20px var(--neon-orange);
        transform: translateY(-2px);
    }

    .btn-milestone:disabled {
        border-color: #444;
        color: #555;
        background: rgba(20, 20, 20, 0.8);
        clip-path: none;
    }
/*usercardnewWelcome*/
.user-card-text {
    font-family: 'Share Tech Mono', monospace; /* Dein Tech-Font */
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    min-height: 1.5em; /* Verhindert Springen des Layouts */
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.terminal-glow-green {
    color: #2ecc71; /* Wechselt nach Abschluss auf ein "System Ready" Grün */
    text-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
    transition: color 1s ease;
}

/* Discord Integrations */
.btn-discord {
    background: #5865F2;
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Hub Celebration Effekt für Rangaufstieg */
.hub-celebration {
    animation: terminal-flicker 0.2s 6; /* 6-mal schnelles Flackern */
}

@keyframes terminal-flicker {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(46, 204, 113, 0.15);
        box-shadow: inset 0 0 50px rgba(46, 204, 113, 0.5);
    }

    100% {
        background-color: transparent;
    }
}
/* ==========================================
   03 // WORLD MAP & RADAR
   ========================================== */
.map-sector {
    margin-top: 40px;
}

.map-container {
    border: 1px solid rgba(243, 156, 18, 0.1);
    background: rgba(15, 12, 10, 0.6);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .map-header h3 {
        font-size: 0.8rem;
        letter-spacing: 2px;
        color: var(--neon-orange);
    }

.map-stats {
    font-size: 0.6rem;
    color: #666;
    font-family: monospace;
}

.world-map {
    width: 100%;
    height: 400px;
    background: #000;
    background-image: linear-gradient(rgba(243, 156, 18, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 156, 18, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    border: 1px solid #222;
    overflow: hidden;
}

.map-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

    .map-point.partner {
        background: var(--master-gold);
        box-shadow: 0 0 15px var(--master-gold);
        z-index: 10;
    }

    .map-point.unit {
        background: var(--rust-orange);
        box-shadow: 0 0 10px var(--rust-orange);
        width: 4px;
        height: 4px;
    }

.map-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.6rem;
    color: #888;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

    .dot.gold {
        background: var(--master-gold);
    }

    .dot.orange {
        background: var(--rust-orange);
    }

@keyframes pulse-simple {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.pulse-gold {
    color: var(--master-gold);
    animation: pulse-simple 2s infinite;
}

/* ==========================================
   04 // LIVE LOG (HUB FEED)
   ========================================== */
.activity-log {
    position: relative;
    border: 1px solid rgba(243, 156, 18, 0.1);
    background: rgba(15, 12, 10, 0.6);
    padding: 15px;
    border-radius: 5px;
    height: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .activity-log::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
        background-size: 100% 4px, 3px 100%;
        pointer-events: none;
    }

.log-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.log-title {
    color: var(--neon-orange);
    font-weight: bold;
}

.log-status {
    color: var(--accent-green);
    animation: pulse-simple 1.5s infinite;
}

.log-body {
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #888;
}

.log-line {
    margin-bottom: 5px;
    white-space: nowrap;
}

    .log-line.highlight {
        color: var(--neon-orange);
        background: rgba(243, 156, 18, 0.1);
    }

.log-time {
    color: #555;
    margin-right: 8px;
}

.log-body::-webkit-scrollbar {
    width: 4px;
}

.log-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* Animation für den neuen User im Feed */
.first-day-highlight {
    border-left: 3px solid #2ecc71 !important;
    background: rgba(46, 204, 113, 0.1);
    padding-left: 10px;
    animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
    0% {
        box-shadow: inset 0 0 0px rgba(46, 204, 113, 0);
    }

    50% {
        box-shadow: inset 0 0 10px rgba(46, 204, 113, 0.2);
    }

    100% {
        box-shadow: inset 0 0 0px rgba(46, 204, 113, 0);
    }
}

/* ==========================================
   05 // LEADERBOARD
   ========================================== */
.leaderboard-sector {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(20, 15, 10, 0.7);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 8px;
    padding: 20px;
}

    .leaderboard-sector h3 {
        font-size: 0.8rem;
        color: var(--neon-orange);
        letter-spacing: 2px;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

.leader-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

    .leader-table thead {
        position: sticky;
        top: 0;
        background: #0d0d0b;
        z-index: 10;
    }

    .leader-table th {
        text-align: left;
        color: #666;
        padding: 10px 5px;
        border-bottom: 1px solid #333;
        font-weight: normal;
    }

    .leader-table td {
        padding: 12px 5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        color: #aaa;
    }

        .leader-table td:last-child {
            color: var(--neon-orange);
            text-align: left;
        }

    .leader-table tr:hover {
        background: rgba(243, 156, 18, 0.05);
    }

        .leader-table tr:hover td {
            color: #fff;
        }

.rank-1 {
    color: var(--master-gold);
    font-weight: bold;
}

.rank-2 {
    color: #bdc3c7;
}

.rank-3 {
    color: #cd7f32;
}

/* ==========================================
   06 // PARTNER TERMINAL & ORDERS
   ========================================== */
#partner-terminal {
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid var(--accent-green);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.1);
    font-family: 'Courier New', monospace;
}

.order-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-blue, #3498db);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

    .order-card.exclusive {
        border-left: 3px solid var(--accent-green);
        background: rgba(0, 255, 136, 0.05);
    }

.order-info {
    flex: 1;
    min-width: 200px;
}

.order-type {
    display: block;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
}

.order-meta {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    color: var(--master-gold);
}

/* Progress Container */
.production-container {
    flex-basis: 100%;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--master-gold) !important;
    border-radius: 8px;
    box-sizing: border-box;
}

.progress-bar-bg {
    width: 100% !important;
    height: 18px !important;
    background: #222 !important;
    border-radius: 9px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--master-gold), var(--accent-green)) !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
    transition: width 0.2s linear;
}

.progress-text {
    color: var(--master-gold) !important;
    font-size: 0.7rem;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-claim.success {
    background: var(--accent-green);
    color: #000;
    border: none;
    width: 100%;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
}

@keyframes pulse-green-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.pulse-green {
    animation: pulse-green-anim 2s infinite;
}

/* ==========================================
   07 // FRANCHISE & HARDWARE LOGIC
   ========================================== */
.franchise-box {
    border: 1px solid var(--neon-orange);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.15);
    margin: 20px 0;
    padding: 15px;
}

#franchise-editor {
    width: 100%;
    height: 150px;
    background: #050505;
    color: var(--term-green);
    border: 1px solid #333;
    font-family: 'Share Tech Mono', monospace;
    padding: 10px;
    margin: 10px 0;
    resize: none;
}

.instruction-note {
    font-size: 0.8rem;
    color: var(--neon-orange);
    border-left: 2px solid var(--neon-orange);
    padding-left: 10px;
    margin-bottom: 15px;
}

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 163, 255, 0.4);
        border-color: rgba(0, 163, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 163, 255, 0.8);
        border-color: rgba(0, 163, 255, 1);
    }
}

.searching-signal {
    animation: pulse-blue 2s infinite ease-in-out;
    color: #00a3ff !important;
    text-shadow: 0 0 10px rgba(0, 163, 255, 0.5);
    background: rgba(0, 163, 255, 0.1) !important;
}

/* ==========================================
   08 // MISCELLANEOUS / LOGIN OVERLAY
   ========================================== */
.login-box {
    width: 400px;
    background: #0f0c0a;
    border: 2px solid var(--rust-orange);
    box-shadow: 0 0 30px rgba(230, 126, 34, 0.2);
    padding: 0;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: var(--rust-orange);
    color: #000;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.login-content {
    padding: 30px;
    text-align: center;
}

.terminal-text {
    color: var(--neon-orange);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

#email-input, #password-input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--neon-orange);
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

#password-input {
    margin-bottom: 20px;
}

#register-btn {
    background: transparent;
    border: 1px dashed var(--neon-orange);
    color: var(--neon-orange);
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

    #register-btn:hover {
        background: rgba(243, 156, 18, 0.1);
    }

.github-link {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 2px 8px;
    font-size: 10px;
    transition: 0.3s;
}

    .github-link:hover {
        background: #fff;
        color: #000;
    }

#python-code-display {
    color: #0f0;
    padding: 15px;
    margin: 0;
    font-size: 11px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.terminal-video-portal {
    width: 100%;
    max-width: 280px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5);
    background: #000;
    overflow: hidden;
    position: relative;
}

    .terminal-video-portal video {
        width: 100%;
        display: block;
        filter: saturate(1.1) contrast(1.05);
    }

    .terminal-video-portal::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
        pointer-events: none;
    }

.portal-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #3498db;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
