/* ═══════════════════════════════════════════════════════════════════════════════
   PRIME ROYALE - SYNDICATE GENESIS THEME
   Hexagonal Command Center Design for Clan System
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. MAIN CONTAINER - Clean Dark Background
   ═══════════════════════════════════════════════════════════════════════════════ */

.syndicate-genesis {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #0a0e17 0%, #070b12 50%, #050810 100%) !important;
}

/* Subtle Noise Texture - Very Light */
.syndicate-genesis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

/* Subtle Vignette Effect */
.syndicate-genesis::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. LEFT SIDEBAR - Menu Navigation
   ═══════════════════════════════════════════════════════════════════════════════ */

.syndicate-sidebar {
    background: linear-gradient(180deg,
        rgba(5, 15, 30, 0.98) 0%,
        rgba(3, 10, 20, 0.99) 100%) !important;
    border-right: 1px solid rgba(0, 170, 255, 0.15) !important;
    position: relative;
    z-index: 10;
}

.syndicate-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.syndicate-sidebar-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.syndicate-category {
    padding: 15px 16px 8px;
    font-size: 11px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.syndicate-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 8px 4px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: calc(100% - 16px);
}

.syndicate-menu-item:hover {
    background: rgba(0, 170, 255, 0.1);
    color: #fff;
}

.syndicate-menu-item.active {
    background: linear-gradient(90deg, rgba(0, 170, 255, 0.25) 0%, rgba(0, 100, 180, 0.15) 100%);
    color: #00aaff;
    border-left: 3px solid #00aaff;
    margin-left: 5px;
}

.syndicate-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Leave Syndicate Button */
.syndicate-leave-btn {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.syndicate-leave-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. MAIN CONTENT AREA - Dashboard
   ═══════════════════════════════════════════════════════════════════════════════ */

.syndicate-main-content {
    flex: 1;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
}

/* Clan Logo Hexagon */
.syndicate-logo-container {
    position: relative;
    width: 160px;
    height: 180px;
    margin-bottom: 20px;
}

.syndicate-logo-hexagon {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg,
        rgba(0, 80, 150, 0.8) 0%,
        rgba(0, 50, 100, 0.9) 50%,
        rgba(0, 30, 60, 0.95) 100%);
    border: 3px solid rgba(255, 200, 50, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(255, 200, 50, 0.2),
        inset 0 0 30px rgba(255, 200, 50, 0.1);
}

.syndicate-logo-image {
    font-size: 80px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* Clan Name Title */
.syndicate-name-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow:
        0 0 30px rgba(0, 170, 255, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Audiowide', 'Orbitron', sans-serif;
    margin: 0 0 10px 0;
    text-align: center;
}

.syndicate-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.syndicate-subtitle span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Season Progress Panel */
.syndicate-season-panel {
    background: linear-gradient(135deg,
        rgba(0, 50, 100, 0.6) 0%,
        rgba(0, 30, 60, 0.7) 100%);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 16px;
    padding: 25px 30px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
}

.syndicate-season-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.syndicate-season-icon {
    font-size: 24px;
}

.syndicate-season-title {
    font-size: 16px;
    font-weight: bold;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.syndicate-season-mode {
    margin-left: auto;
    font-size: 14px;
    color: #4ade80;
    font-weight: bold;
}

.syndicate-xp-container {
    margin-bottom: 15px;
}

.syndicate-xp-bar-bg {
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.syndicate-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.syndicate-xp-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.syndicate-xp-text span {
    color: #4ade80;
    font-weight: bold;
}

/* Reward Badges */
.syndicate-rewards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.syndicate-reward-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 30, 60, 0.6) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.syndicate-reward-badge.earned {
    border-color: rgba(255, 200, 50, 0.6);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.15) 0%, rgba(200, 150, 0, 0.1) 100%);
}

.syndicate-reward-icon {
    font-size: 20px;
}

.syndicate-reward-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Action Buttons */
.syndicate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.syndicate-action-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #00aaff 0%, #0066cc 100%);
    border: 1px solid rgba(0, 200, 255, 0.4);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Audiowide', sans-serif;
}

.syndicate-action-btn:hover {
    background: linear-gradient(135deg, #00ccff 0%, #0088ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.syndicate-action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.syndicate-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. RIGHT SIDEBAR - Leaderboard & Chat
   ═══════════════════════════════════════════════════════════════════════════════ */

.syndicate-right-sidebar {
    width: 300px;
    background: linear-gradient(180deg,
        rgba(5, 15, 30, 0.98) 0%,
        rgba(3, 10, 20, 0.99) 100%) !important;
    border-left: 1px solid rgba(0, 170, 255, 0.15) !important;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Top Syndicates Panel */
.syndicate-leaderboard-panel {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
}

.syndicate-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.syndicate-panel-icon {
    color: #fbbf24;
}

.syndicate-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.syndicate-leaderboard-item:hover {
    background: rgba(0, 170, 255, 0.1);
}

.syndicate-leaderboard-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
}

.syndicate-leaderboard-rank.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.syndicate-leaderboard-rank.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #000;
}

.syndicate-leaderboard-rank.bronze {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #000;
}

.syndicate-leaderboard-name {
    flex: 1;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* Syndicate Chat Panel */
.syndicate-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    min-height: 0;
}

.syndicate-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

.syndicate-chat-message {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.syndicate-chat-message:last-child {
    border-bottom: none;
}

.syndicate-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.syndicate-chat-avatar {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.syndicate-chat-username {
    font-size: 12px;
    font-weight: bold;
    color: #8b5cf6;
}

.syndicate-chat-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

.syndicate-chat-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.syndicate-chat-input-container {
    display: flex;
    gap: 8px;
}

.syndicate-chat-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}

.syndicate-chat-input:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.4);
}

.syndicate-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.syndicate-chat-send {
    padding: 10px 16px;
    background: linear-gradient(135deg, #00aaff 0%, #0066cc 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.syndicate-chat-send:hover {
    background: linear-gradient(135deg, #00ccff 0%, #0088ee 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .syndicate-right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .syndicate-sidebar {
        position: fixed;
        left: -280px;
        top: 60px;
        bottom: 0;
        width: 280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .syndicate-sidebar.open {
        left: 0;
    }

    .syndicate-main-content {
        padding: 20px 15px;
    }

    .syndicate-name-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .syndicate-logo-container {
        width: 120px;
        height: 140px;
    }

    .syndicate-logo-image {
        font-size: 50px;
    }

    .syndicate-season-panel {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes syndicatePulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 200, 50, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 200, 50, 0.4); }
}

.syndicate-logo-hexagon {
    animation: syndicatePulse 3s ease-in-out infinite;
}

@keyframes floatSyndicate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.syndicate-logo-container {
    animation: floatSyndicate 4s ease-in-out infinite;
}
