/* CommEM Custom Styles */

/* DISABLE PRINTING - SUBSCRIPTION-ONLY ACCESS */
@media print {
    body {
        display: none !important;
    }
    
    body::before {
        content: "Printing disabled. Access content through your CommEM subscription only." !important;
        display: block !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 24px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-align: center !important;
        z-index: 9999 !important;
    }
}

/* Disable browser print shortcuts */
body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e9ecef;
    background-color: #1a1d23;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

/* Button Styles */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: 1px solid #2d3748;
    background-color: #2d3748;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: #4a5568;
}

.card .text-muted {
    color: #a0aec0 !important;
}

.card-title {
    color: #ffffff !important;
}

/* Module Hover Effects */
.module-hover {
    transition: all 0.3s ease;
    border: 1px solid #2d3748 !important;
}

.module-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    border-color: #4a5568 !important;
}

.module-hover .card-body {
    position: relative;
    z-index: 1;
}

/* Form Controls */
.form-control {
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #0066cc;
    background-color: #2d3748;
    color: #e9ecef;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Navigation */
.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
}

.navbar-brand img {
    filter: contrast(1.2) saturate(1.1);
}

/* Footer styling */
footer {
    margin-top: auto !important;
}

footer small {
    opacity: 0.9;
}

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

/* Filter Buttons */
.filter-btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn:not(.active):hover {
    transform: translateY(-1px);
}

/* Category badges */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.4em 0.8em;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

/* Footer */
footer {
    font-size: 0.9rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* Mobile Hero Section */
@media (max-width: 991px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section .min-vh-75 {
        min-height: auto !important;
    }
    
    .hero-section .col-lg-6:first-child {
        text-align: center;
    }
    
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section .d-flex.gap-3 .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-section .d-flex.align-items-center.gap-4 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    /* Hide rotated preview cards on mobile */
    .hero-section .position-relative .card {
        transform: none !important;
        margin-bottom: 1rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }
    
    .navbar .btn {
        width: 100%;
    }
}

/* Mobile See Examples Section */
@media (max-width: 991px) {
    .bg-dark.py-5.border-bottom .card {
        margin-bottom: 1rem;
    }
    
    .bg-dark.py-5.border-bottom .card-body {
        padding: 1rem !important;
    }
    
    .bg-dark.py-5.border-bottom .bg-dark.rounded.p-3 {
        padding: 0.75rem !important;
    }
    
    .bg-dark.py-5.border-bottom p {
        font-size: 0.9rem;
    }
}

/* Mobile Pricing Cards */
@media (max-width: 767px) {
    .bg-secondary.py-5 .card {
        margin-bottom: 1.5rem;
    }
    
    .bg-secondary.py-5 .card-body {
        padding: 1.5rem !important;
    }
    
    .bg-secondary.py-5 .display-6 {
        font-size: 2rem;
    }
    
    .bg-secondary.py-5 .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .bg-secondary.py-5 .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Features Section */
@media (max-width: 767px) {
    .container.py-5 .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .container.py-5 .rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .container.py-5 .rounded-circle i {
        font-size: 1.5rem !important;
    }
}

/* Mobile Footer */
@media (max-width: 991px) {
    footer .row {
        text-align: center !important;
    }
    
    footer .col-lg-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    footer .text-lg-end {
        text-align: center !important;
    }
    
    footer a {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        margin: 0.25rem;
    }
}

/* Mobile Dashboard Category Blocks */
@media (max-width: 767px) {
    .category-block {
        padding: 2rem !important;
        min-height: 200px !important;
    }
    
    .category-block i {
        font-size: 3rem !important;
    }
    
    .category-block h2 {
        font-size: 1.5rem;
    }
    
    .category-block p {
        font-size: 0.9rem;
    }
    
    /* Hide decorative background icons on mobile */
    .category-block .position-absolute {
        display: none !important;
    }
}

/* Mobile Module Cards */
@media (max-width: 767px) {
    .module-card .card {
        min-height: 200px !important;
    }
    
    .module-card .card-body {
        padding: 1.5rem !important;
    }
    
    .module-card i {
        font-size: 2rem !important;
    }
}

/* Mobile Admin Dashboard */
@media (max-width: 991px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table td, .table th {
        padding: 0.5rem !important;
    }
    
    .dropdown-menu {
        min-width: 250px;
    }
}

/* Mobile Legal Pages */
@media (max-width: 767px) {
    .col-lg-8 .card {
        margin-bottom: 1rem;
    }
    
    .col-lg-8 .card-body {
        padding: 1rem !important;
    }
}

/* General Mobile Spacing */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Ensure text is readable on mobile */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    .small, small {
        font-size: 0.8rem;
    }
}

/* Print Styles */
/* Secondary print block removed - already disabled above */