/* Nagpur City Police - Enhanced Theme Design */

/* ============================================
   THEME FOUNDATIONS & VARIABLES
   ============================================ */

/* CSS Variables are dynamically generated by the Theme System
   See: ThemeSettings::generateCss() method for active theme variables */

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

* {
    font-family: var(--font-primary) !important;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary) !important;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 600;
    line-height: 1.3;
    color: var(--police-dark);
    margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

.text-hero {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.text-lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* Marathi Typography */
.text-marathi {
    font-family: var(--font-marathi) !important;
    line-height: 1.8;
}

/* ============================================
   COMPONENT SYSTEM
   ============================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--police-primary), var(--police-secondary));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--police-secondary), var(--police-primary));
}

.btn-secondary {
    background: white;
    color: var(--police-primary);
    border: 2px solid var(--police-primary);
}

.btn-secondary:hover {
    background: var(--police-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--police-accent), #ffed4e);
    color: var(--police-dark);
    font-weight: 600;
}

.btn-accent:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--police-primary), var(--police-secondary));
    color: white;
    border-bottom: 4px solid var(--police-accent);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* Government Identity Card */
.govt-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.govt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--govt-orange), var(--govt-white), var(--govt-green));
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--police-primary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

/* Container System */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ============================================
   HEADER ENHANCEMENT
   ============================================ */

.site-header {
    background: linear-gradient(135deg, var(--police-primary) 0%, var(--police-secondary) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--police-dark);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.header-main {
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--police-accent);
}

.site-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.site-subtitle {
    color: var(--police-accent);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--police-accent);
    color: var(--police-dark);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, 
        rgba(5, 66, 133, 0.95) 0%, 
        rgba(11, 114, 199, 0.9) 50%, 
        rgba(5, 66, 133, 0.95) 100%
    ),
    url('/images/nagpur-police-bg.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255, 215, 0, 0.1) 25%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 50%
    );
    background-size: 60px 60px;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translateX(-60px); }
    100% { transform: translateX(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   POLICE STATION CARDS
   ============================================ */

.police-station-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.police-station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--police-primary), var(--police-accent), var(--police-secondary));
}

.police-station-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.station-image {
    height: 200px;
    background: linear-gradient(135deg, var(--police-primary), var(--police-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.station-info {
    padding: 1.5rem;
}

.station-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--police-dark);
    margin-bottom: 0.5rem;
}

.station-details {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.officer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--police-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* ============================================
   FOOTER ENHANCEMENT
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--police-dark) 0%, var(--gray-900) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--police-accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--police-accent);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 { 
        grid-template-columns: 1fr; 
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        display: none; /* Implement mobile menu */
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus styles */
*:focus {
    outline: 2px solid var(--police-accent);
    outline-offset: 2px;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: white; }
.text-primary { color: var(--police-primary); }
.text-secondary { color: var(--police-secondary); }
.text-accent { color: var(--police-accent); }

/* Background utilities */
.bg-primary { background-color: var(--police-primary); }
.bg-secondary { background-color: var(--police-secondary); }
.bg-accent { background-color: var(--police-accent); }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--gray-50); }

/* Border utilities */
.border { border: 1px solid var(--gray-200); }
.border-primary { border-color: var(--police-primary); }
.border-accent { border-color: var(--police-accent); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}