/* ============================================
   ADDITIONAL STYLES - Announcements, Cookie Banner, etc.
   ============================================ */

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: white;
    animation: slideDown 0.3s ease;
}

.announcement-banner + .navbar {
    top: 45px;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-content a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.announcement-dismiss {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 4px;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.announcement-dismiss:hover {
    background: rgba(255,255,255,0.3);
}

.announcement-dismiss svg {
    width: 16px;
    height: 16px;
    fill: white;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface, #12121a);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: var(--color-text-muted, rgba(255,255,255,0.7));
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--color-primary, #00f0ff);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-menu .mobile-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Copy Button */
.copy-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn.copied {
    background: var(--color-success, #10b981) !important;
    border-color: var(--color-success, #10b981) !important;
    color: white !important;
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
}

/* Status Dots */
.status-dot, .stat-dot, .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online, .stat-dot.online, .dot.online, .dot {
    background: var(--color-success, #10b981);
    box-shadow: 0 0 8px var(--color-success, #10b981);
}

.status-dot.offline, .stat-dot.offline, .dot.offline {
    background: var(--color-error, #ef4444);
    box-shadow: 0 0 8px var(--color-error, #ef4444);
}

.status-dot.degraded, .stat-dot.degraded, .dot.degraded {
    background: var(--color-warning, #f59e0b);
    box-shadow: 0 0 8px var(--color-warning, #f59e0b);
    animation: pulse-warning 2s ease-in-out infinite;
}

.status-dot.maintenance, .dot.maintenance {
    background: var(--color-warning, #f59e0b);
    box-shadow: 0 0 8px var(--color-warning, #f59e0b);
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--color-primary, #00f0ff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: var(--color-text-muted, rgba(255,255,255,0.7));
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--color-primary, #00f0ff);
    color: var(--color-bg, #0a0a0f);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Status Uptime */
.status-uptime {
    font-size: 0.85rem;
    color: var(--color-success, #10b981);
    font-weight: 600;
}

/* Button Small */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Discord Icon in buttons */
.discord-icon {
    display: inline-flex;
    margin-right: 0.5rem;
}

.discord-icon svg {
    width: 18px;
    height: 18px;
}

/* Server Meta Items */
.server-meta-item .dot {
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
}

/* Legal Footer Column */
.footer-col:last-child ul {
    font-size: 0.85rem;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   TOOLTIPS
   ============================================ */

.has-tooltip {
    position: relative;
    cursor: help;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.has-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   APPLICATION CARDS
   ============================================ */

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--app-color, var(--color-primary));
    opacity: 0.8;
}

.application-card:hover {
    border-color: var(--app-color, rgba(255, 255, 255, 0.15));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.app-card-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.app-title-wrap {
    flex: 1;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--color-text, #fff);
}

.app-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
    margin: 0;
    line-height: 1.5;
}

.app-requirements {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.app-requirements h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.app-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-requirements li {
    font-size: 0.85rem;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.8));
    padding-left: 1.25rem;
    position: relative;
}

.app-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--app-color, var(--color-success));
    font-weight: bold;
}

.application-card .btn {
    margin-top: auto;
    text-align: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-title-wrap {
        text-align: center;
    }
}
