/* Global Responsive Styles for SMK Diponegoro Website */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation improvements */
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Hero section adjustments */
    .hero-carousel .carousel-item {
        height: 400px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Header improvements */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .header-top {
        font-size: 0.8rem;
    }
    
    .header-top .container {
        padding: 0.5rem 1rem;
    }
    
    /* Hero section adjustments */
    .hero-carousel .carousel-item {
        height: 350px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
    
    /* Layout improvements */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Card improvements */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Table improvements */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header improvements */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .header-top {
        font-size: 0.75rem;
    }
    
    .header-top .d-flex {
        justify-content: center;
    }
    
    .header-top .text-md-end {
        margin-top: 0.5rem;
    }
    
    /* Hero section adjustments */
    .hero-carousel .carousel-item {
        height: 300px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.1rem;
    }
    
    .carousel-caption p {
        font-size: 0.75rem;
    }
    
    /* Layout improvements */
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Card improvements */
    .card-body {
        padding: 1rem;
    }
    
    /* Table improvements */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.25rem 0.125rem;
    }
    
    /* Button improvements */
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* Image improvements */
    .hero-preview {
        max-width: 80px;
        max-height: 60px;
    }
    
    .principal-photo {
        max-width: 150px !important;
        height: 150px !important;
    }
    
    /* Typography improvements */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    h6, .h6 {
        font-size: 0.9rem;
    }
    
    /* Footer improvements */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer h6 {
        font-size: 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    footer .d-flex.gap-3 {
        gap: 1rem !important;
        justify-content: center;
    }
    
    footer .d-flex.gap-3 a {
        font-size: 1.2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .carousel-controls {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .text-success {
        color: #000 !important;
    }
    
    .bg-success {
        background-color: #fff !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .table th {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This can be customized for dark mode if needed */
    .bg-light {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
    
    .text-dark {
        color: #e2e8f0 !important;
    }
}
