/* Corporate Blue Theme for Love the North */
:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004499;
    --light-blue: #e6f2ff;
    --dark-blue: #003366;
    --success-green: #28a745;
    --info-cyan: #17a2b8;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

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

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

/* Custom styles for each domain */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Reduce navbar padding for thinner navigation */
.navbar {
    padding-top: calc(0.5rem - 5px);
    padding-bottom: calc(0.5rem - 5px);
}

/* Modern Hero Section */
.modern-hero-section {
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--secondary-blue) 50%, 
        #001a33 100%);
    min-height: auto;
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

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

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    color: #b3d9ff;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: #e6f2ff;
    font-weight: 300;
    line-height: 1.7;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #b3d9ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-width: 2px;
}

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

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.9);
    color: var(--primary-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-hero-section {
        min-height: auto;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Top Banner Ad Styles (720x130px) */
.top-banner-container {
    background: linear-gradient(45deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #dee2e6;
}

.top-banner-ad {
    max-width: 720px;
    margin: 0 auto;
}

.top-banner-ad img {
    width: 720px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-banner-ad img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Premium Banner Ad Styles (720x80px) */
.premium-banner-container {
    background: linear-gradient(45deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.premium-banner-ad {
    max-width: 720px;
    margin: 0 auto;
}

.premium-banner-ad img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-banner-ad img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* SharedAdvertising green theme */
.bg-success {
    background-color: var(--success-green) !important;
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* InfoInTheBox cyan theme */
.bg-info {
    background-color: var(--info-cyan) !important;
}

.btn-info {
    background-color: var(--info-cyan);
    border-color: var(--info-cyan);
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: white;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

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

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Section titles */
.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

/* Article content styling */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Form enhancements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Table enhancements */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background-color: var(--light-gray);
    border-bottom: none;
    font-weight: 600;
    color: var(--dark-blue);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

/* Advertisement styling */
.advertisement-card {
    border: 2px dashed #dee2e6;
    transition: border-color 0.2s ease-in-out;
}

.advertisement-card:hover {
    border-color: var(--primary-blue);
}

/* Step numbers for process flow */
.step-number {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Feature icons */
.feature-icon {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Sticky sidebar */
.sticky-top {
    top: 20px !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .card-header,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #2d3748;
        --dark-gray: #1a202c;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Enhanced content textarea styling */
#articleContent {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#articleContent:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: none;
}

#articleContent::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Improve readability for all form textareas */
.form-control[rows] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Article content display styling */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content br {
    margin-bottom: 0.75rem;
}

/* Social share buttons styling */
.share-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    min-width: 120px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.facebook-share:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white !important;
}

.x-share:hover {
    background-color: #000000;
    border-color: #000000;
    color: white !important;
}

.instagram-share:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #e6683c;
    color: white !important;
}

.email-share:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white !important;
}

.copy-link:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: white !important;
}

.share-btn i {
    width: 16px;
    height: 16px;
}

/* Responsive share buttons */
@media (max-width: 576px) {
    .share-btn {
        flex: 1;
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

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