/* Channel Listing Card Styles */
.channel-list-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px rgba(51,155,235,0.08), 0 1.5px 6px rgba(44,62,80,0.06);
    border: 1.5px solid #e3f0fa;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}
.channel-list-card .channel-item:not(:last-child) {
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
}
.channel-list-card .channel-item {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
/* Site-wide Enhanced Background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #eaf6fd 0%, #d2e6f7 100%);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}
.news-header {
    position: relative;
    z-index: 2;
}
.news-header .news-icon {
    filter: drop-shadow(0 2px 8px rgba(51,155,235,0.13));
}
.news-header h1 {
    letter-spacing: -1px;
    color: var(--austnet-dark);
    text-shadow: 0 2px 8px rgba(51,155,235,0.07);
}
.news-header p.lead {
    color: #4a5a6a;
}
.news-card {
    border-radius: 0.8rem;
    background: linear-gradient(120deg, #fafdff 60%, #eaf6fd 100%);
    box-shadow: 0 2px 12px rgba(51,155,235,0.07), 0 1px 4px rgba(44,62,80,0.05);
    border: 1px solid #e3f0fa;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.8rem;
    font-size: 0.96em;
}
.news-card:hover {
    box-shadow: 0 12px 36px rgba(51,155,235,0.13), 0 2px 8px rgba(44,62,80,0.09);
    border-color: #b6e2fa;
}
.news-accent {
    width: 7px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--austnet-primary), #6fd0ff 100%);
    box-shadow: 0 0 8px 0 #6fd0ff33;
    flex-shrink: 0;
}
.news-content {
    font-size: 0.93em;
    color: #1d2a36;
    line-height: 1.5;
    margin-top: 0.1rem;
    background: transparent;
    border-radius: 0.4rem;
    padding: 0.08rem 0 0.08rem 0;
}
.news-meta {
    margin-bottom: 0.08rem !important;
    font-size: 0.89em;
    color: #7b8a99 !important;
}
.news-card .card-header {
    background: var(--austnet-primary) !important;
    color: #fff !important;
    border-bottom: 1px solid #e3f0fa;
    font-size: 1.01rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    padding: 0.55rem 1.2rem;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
}
.news-card .card-header h5 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
}
.news-card .card-body {
    padding: 0.7rem 1rem 0.7rem 0.8rem;
    background: transparent;
}
.news-card .text-muted {
    color: #6b7a89 !important;
}
.pagination .page-link {
    border-radius: 0.5rem;
    color: var(--austnet-primary);
    background: #fafdff;
    border: 1.5px solid #e3f0fa;
}
.pagination .page-item.active .page-link {
    background: var(--austnet-primary);
    border-color: var(--austnet-primary);
    color: #fff;
}
/* AustNet IRC Network - Custom Styles */

:root {
    --austnet-primary: #339BEB;
    --austnet-primary-dark: #2980b9;
    --austnet-light: #f8f9fa;
    --austnet-dark: #2c3e50;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--austnet-primary);
    border-color: var(--austnet-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--austnet-primary-dark);
    border-color: var(--austnet-primary-dark);
}

.btn-outline-primary {
    color: var(--austnet-primary);
    border-color: var(--austnet-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--austnet-primary);
    border-color: var(--austnet-primary);
}

.text-primary {
    color: var(--austnet-primary) !important;
}

.bg-primary {
    background-color: var(--austnet-primary) !important;
}

.border-primary {
    border-color: var(--austnet-primary) !important;
}

/* Custom styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar Dark Theme */
.navbar {
    background-color: var(--austnet-dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .navbar-brand:hover {
    color: var(--austnet-primary) !important;
}

/* Navbar brand text - hidden on desktop, shown on mobile */
.navbar-brand-text {
    display: none;
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand-text {
        display: inline;
    }
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--austnet-primary) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar button styling */
.navbar .btn-outline-primary {
    color: var(--austnet-primary);
    border-color: var(--austnet-primary);
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus {
    background-color: var(--austnet-primary);
    border-color: var(--austnet-primary);
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, var(--austnet-primary) 0%, var(--austnet-primary-dark) 100%);
    min-height: 60vh;
    padding-top: 80px; /* Account for fixed navbar height on desktop */
}

/* Mobile-specific hero section padding */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 180px !important; /* Increased padding for mobile navbar with WebChat button and news card */
    }
}

.min-vh-50 {
    min-height: 50vh;
}

/* For non-hero pages, add top padding to main content */
main:not(.hero-section):not(:has(.hero-section)) {
    padding-top: 80px;
}

/* Mobile-specific main content padding */
@media (max-width: 991.98px) {
    main:not(.hero-section):not(:has(.hero-section)) {
        padding-top: 150px;
    }
}

.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: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Disable hover effects for Acceptable Use Policy cards */
.acceptable-use .card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item h3 {
    margin-bottom: 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--austnet-primary) !important;
}

/* Footer styles */
footer a:hover {
    color: var(--austnet-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
}

/* Animation for stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item h3 {
    animation: countUp 0.6s ease-out;
}

/* Force hide latest news on mobile */
@media (max-width: 991.98px) {
    .latest-news-card {
        display: none !important;
    }
}

/* Desktop-specific adjustments */
@media (min-width: 992px) {
    .latest-news-card {
        margin-top: 5rem; /* Increased top margin on desktop */
        max-height: 450px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
    .latest-news-card {
        margin-top: 1rem; /* Less top margin on mobile */
        max-height: 300px; /* Smaller height on mobile */
        margin-bottom: 2rem; /* Add bottom margin to ensure visibility */
    }
    
    /* Ensure the news card is always visible on mobile */
    .hero-section .col-lg-6 {
        display: block !important;
        min-height: 350px;
    }
    
    /* Adjust row alignment for mobile */
    .hero-section .row {
        align-items: flex-start !important; /* Align to top instead of center on mobile */
    }
}

.latest-news-card .news-item {
    transition: background-color 0.2s ease;
}

/* Disable hover effects for latest news card */
.latest-news-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.latest-news-card .border-bottom {
    border-color: rgba(51, 155, 235, 0.2) !important;
}

/* Custom scrollbar for news card */
.latest-news-card::-webkit-scrollbar {
    width: 6px;
}

.latest-news-card::-webkit-scrollbar-track {
    background: rgba(51, 155, 235, 0.1);
    border-radius: 3px;
}

.latest-news-card::-webkit-scrollbar-thumb {
    background: var(--austnet-primary);
    border-radius: 3px;
}

.latest-news-card::-webkit-scrollbar-thumb:hover {
    background: var(--austnet-primary-dark);
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Server status indicators */
.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Channel list styles */
.channel-list {
    max-height: 400px;
    overflow-y: auto;
}

.channel-item {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.channel-item:hover {
    background-color: #f8f9fa;
}

.channel-item:last-child {
    border-bottom: none;
}

/* Code blocks */
code {
    background-color: #f8f9fa;
    color: var(--austnet-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

/* Alert customizations */
.alert-info {
    background-color: rgba(51, 155, 235, 0.1);
    border-color: var(--austnet-primary);
    color: var(--austnet-primary-dark);
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--austnet-primary);
    box-shadow: 0 0 0 0.2rem rgba(51, 155, 235, 0.25);
}

/* Custom utilities */
.text-muted-light {
    color: #6c757d !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--austnet-primary) 0%, var(--austnet-primary-dark) 100%);
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
    }
}

/* Staff page styles */
.staff-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--austnet-primary), var(--austnet-primary-dark));
    border-radius: 50%;
    color: white;
}

.staff-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 155, 235, 0.2);
}

/* Staff page section headers */
.staff-section {
    margin-bottom: 3rem;
}

.staff-section h2 {
    color: var(--austnet-primary);
    font-weight: 600;
}

/* Staff cards hover effect (subtle) */
.staff-page .card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Modes and Commands page styles */
.mode-item code,
.command-item code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background-color: rgba(51, 155, 235, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(51, 155, 235, 0.2);
}

.mode-item,
.command-item {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mode-item:last-child,
.command-item:last-child {
    border-bottom: none;
}

.mode-item strong,
.command-item strong {
    display: inline;
    margin-left: 8px;
    color: var(--austnet-dark);
    font-weight: 600;
}

.mode-item small,
.command-item small {
    color: #6c757d;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
    margin-left: 0;
}

.alert code {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #495057;
}
