/* NWS Forge Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding-top: 60px; /* Account for fixed navbar and logo height */
    padding-bottom: 60px; /* Add bottom padding for balance */
}

.hero-section h1,
.hero-section .display-4 {
    color: #f7931e !important;
}

/* Logo styling */
.logo-honeycomb {
    position: relative;
    display: inline-block;
}

.logo-honeycomb img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    max-height: 287.5px !important; /* 15% larger than 250px */
}

.logo-honeycomb:hover img {
    transform: scale(1.05);
}

/* Fixed logo positioning - ensures logo appears in exact same spot on all pages */
.hero-section .container {
    max-width: 1140px !important; /* Lock container width */
}

.hero-section .row {
    min-height: 350px; /* Ensure enough space for logo without cutting off */
}

.hero-section .col-lg-6 {
    flex: 0 0 50% !important; /* Force exact 50% width */
    max-width: 50% !important;
}

.hero-section .col-lg-6:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Lock logo in exact position */
.hero-section .logo-honeycomb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 287.5px; /* Fixed width */
}

.hero-section .logo-honeycomb:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Feature Icons */
.feature-icon {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Service Icons */
.service-icon {
    background: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-honeycomb {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    color: #212529;
    font-weight: 600;
}

.btn-honeycomb:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.btn-discord {
    background: #5865F2;
    border: none;
    color: white;
    font-weight: 600;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

/* Dashboard Styles */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.info {
    border-left-color: var(--info-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.02);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Login Form */
.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ===== MOBILE OPTIMIZATION ===== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablets and below (max 768px) */
@media (max-width: 768px) {
    /* Hero Section - Most Important Fix */
    .hero-section {
        padding: 30px 0 40px 0 !important;
        margin-bottom: 1rem;
    }
    
    .hero-section .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .hero-section .row {
        flex-direction: column;
        min-height: auto;
        gap: 2rem;
    }
    
    .hero-section .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Logo - Make responsive */
    .logo-honeycomb {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .logo-honeycomb:hover {
        transform: scale(1.05) !important;
    }
    
    .logo-honeycomb img {
        max-height: 250px !important;
        width: 100%;
        height: auto;
    }
    
    /* Typography - Reduce for mobile */
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .hero-section h1 {
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Remove heavy shadows on mobile */
    .card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Navigation improvements */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        margin-right: 1rem;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    /* Mobile-friendly nav dropdown */
    .dropdown-menu {
        min-width: 200px;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    /* Forms - Better for mobile */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.75rem 0.5rem;
    }
    
    /* Remove or reduce blur effects */
    .card,
    .btn {
        backdrop-filter: none;
    }
    
    /* Better table handling */
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.6rem 0.4rem;
    }
    
    /* Disable expensive animations on mobile */
    @keyframes pulse {
        animation: none;
    }
    
    @keyframes logoGlow {
        animation: none;
    }
    
    .dashboard-header::before {
        animation: none;
    }
    
    /* Static glow instead of animated */
    .dashboard-header {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), 0 0 30px rgba(255, 0, 255, 0.1) !important;
    }
    
    .bot-logo {
        filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.5));
        animation: none;
    }
    
    /* Cards - Lighter shadows */
    .stat-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .stat-card:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Footer optimization */
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer .row {
        gap: 1.5rem;
    }
    
    /* Alert spacing */
    .alert {
        margin: 1rem 0;
        font-size: 0.95rem;
    }
    
    /* Mobile table handling */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }
    
    .table-responsive::after {
        content: "← Scroll for more";
        display: block;
        font-size: 0.75rem;
        color: #999;
        text-align: center;
        padding: 0.5rem;
        margin-top: -0.5rem;
    }
    
    /* Make sure table headers stay visible */
    .table thead {
        position: sticky;
        top: 0;
        background-color: #0d6efd;
        z-index: 10;
    }
}

/* Phones only (max 576px) */
@media (max-width: 576px) {
    /* Extra aggressive size reduction */
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .display-5 {
        font-size: 1.25rem !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Logo smaller for small phones */
    .logo-honeycomb {
        max-width: 200px;
    }
    
    .logo-honeycomb img {
        max-height: 200px !important;
    }
    
    /* Hero padding */
    .hero-section {
        padding: 20px 0 30px 0 !important;
    }
    
    /* Tighter spacing */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Buttons full width */
    .btn-block,
    .w-100 {
        width: 100%;
    }
    
    /* Form improvements */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Reduce feature icon size */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Tables wrap better */
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.25rem;
    }
    
    /* Footer text smaller */
    footer {
        font-size: 0.9rem;
    }
}

/* Very small phones (max 480px) */
@media (max-width: 480px) {
    .display-4 {
        font-size: 1.25rem !important;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    /* Even tighter spacing */
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .p-5 {
        padding: 1rem !important;
    }
    
    /* Stack everything */
    .col-sm-6 {
        flex: 0 0 100% !important;
    }
    
    /* Smaller logo */
    .logo-honeycomb {
        max-width: 180px;
    }
    
    .navbar-brand span {
        display: none; /* Hide text, show logo only */
    }
}

/* Landscape phones (width-limited but tall) */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .logo-honeycomb {
        max-width: 150px;
    }
    
    .logo-honeycomb img {
        max-height: 150px !important;
    }
}

/* ===== DROPDOWN MENU STYLING ===== */

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: all 0.2s ease;
    padding: 0.65rem 1rem;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.08);
    padding-left: 1.1rem;
}

.dropdown-item:active {
    background-color: rgba(13, 110, 253, 0.15);
}

.dropdown-header {
    letter-spacing: 0.5px;
    color: #6c757d !important;
    font-size: 0.75rem !important;
    padding: 0.75rem 1rem 0.5rem 1rem !important;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* Badge styling in dropdown */
.dropdown-item .badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* User avatar in dropdown */
.dropdown-menu .bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%) !important;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}