/* Responsive Styles for Glowon.ro - Professional Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 60px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0 0.5rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
    
    .featured-products .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .featured-products {
        padding: 100px 0;
    }
    
    .features-section {
        padding: 100px 0;
    }
    
    .footer {
        padding: 80px 0 40px;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    /* Header */
    .logo-img {
        height: 35px;
    }
    
    .navbar-brand {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: var(--white);
        border-radius: 10px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--gray-200);
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: var(--dark-color);
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .navbar-nav .nav-link.active {
        background: var(--primary-color);
        color: var(--white);
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
        text-align: center;
        background: var(--green-gradient);
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: var(--white);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        color: var(--white);
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        background: var(--white);
        color: var(--primary-color);
        border: 2px solid var(--white);
        font-weight: 600;
    }
    
    .hero-section .btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    /* Featured Products */
    .featured-products {
        padding: 40px 0;
        background: var(--white);
    }
    
    .featured-products h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        color: var(--dark-color);
    }
    
    .product-card {
        margin-bottom: 1.5rem;
        border: 1px solid var(--gray-200);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }
    
    .product-card .card-img-top {
        height: 150px;
        object-fit: cover;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--dark-color);
        margin-bottom: 0.5rem;
    }
    
    .product-card .card-text {
        font-size: 0.8rem;
        color: var(--gray-600);
        line-height: 1.4;
    }
    
    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    /* Features Section */
    .features-section {
        padding: 40px 0;
        background: var(--light-color);
    }
    
    .feature-icon i {
        font-size: 2rem !important;
        color: var(--primary-color);
    }
    
    .features-section h4 {
        font-size: 1.1rem;
        color: var(--dark-color);
        margin-bottom: 0.5rem;
    }
    
    .features-section p {
        font-size: 0.9rem;
        color: var(--gray-600);
        line-height: 1.4;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 20px;
        text-align: center;
        background: var(--dark-color);
        color: var(--white);
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .footer h5,
    .footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: var(--white);
    }
    
    .footer ul {
        margin-bottom: 1rem;
        padding-left: 1rem;
    }
    
    .footer ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer ul li a {
        color: var(--gray-300);
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .footer ul li a:hover {
        color: var(--primary-color);
    }
    
    .footer p {
        color: var(--gray-300);
        font-size: 0.85rem;
    }
    
    .footer .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .btn-primary {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--white);
    }
    
    .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Search */
    .search-form {
        margin-bottom: 1rem;
    }
    
    .search-form .form-control {
        font-size: 16px;
    }
    
    /* Cart */
    .cart-item {
        padding: 0.75rem 0;
    }
    
    .cart-item .row {
        margin: 0;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-3,
    .cart-item .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    .cart-summary {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    /* Tables */
    .table-responsive {
        border-radius: 10px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Admin Panel */
    .admin-sidebar {
        min-height: auto;
    }
    
    .admin-sidebar .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    /* Cookie Banner */
    .cookie-banner .container {
        padding: 0 1rem;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cookie-banner .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner .d-flex {
        flex-direction: column;
    }
    
    /* Dropdown */
    .dropdown-menu {
        position: absolute !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: 1px solid var(--gray-200);
        box-shadow: none;
        z-index: 999999 !important;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-item {
        margin: 0.25rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .featured-products,
    .features-section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    .product-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cookie-banner,
    .btn,
    .admin-sidebar {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        padding: 0 !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-100: #1a1a1a;
        --gray-200: #2d2d2d;
        --gray-300: #404040;
        --gray-400: #666666;
        --gray-500: #999999;
        --gray-600: #cccccc;
        --gray-700: #e6e6e6;
        --gray-800: #ffffff;
        --white: #000000;
    }
    
    .card {
        background: var(--gray-200);
        color: var(--gray-700);
    }
    
    .table {
        background: var(--gray-200);
        color: var(--gray-700);
    }
    
    .table thead th {
        background: var(--gray-300);
        color: var(--gray-700);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
