/* Responsive CSS for BlueRock Asset Management */

/* Large Screens (Desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
}

/* Small Screens (Mobile Landscape) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .header-container {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .auth-buttons {
        margin-left: 15px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Screens (Mobile Portrait) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .auth-buttons {
        margin-left: 10px;
    }
    
    .auth-buttons a {
        margin-left: 10px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .social-login {
        flex-direction: column;
    }
}

/* Navigation Menu for Mobile */
@media screen and (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        z-index: 1001;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 20px;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
    }
    
    .mobile-nav-links {
        list-style: none;
    }
    
    .mobile-nav-links li {
        margin-bottom: 15px;
    }
    
    .mobile-nav-links a {
        display: block;
        padding: 10px 0;
        color: var(--text-color);
        font-weight: 500;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: var(--primary-color);
    }
    
    .mobile-nav-auth {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-nav-auth .btn {
        width: 100%;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
    }
    
    .overlay.active {
        display: block;
    }
}

/* Form Responsiveness */
@media screen and (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px;
    }
    
    .btn {
        padding: 10px 15px;
    }
}

/* Dashboard Responsiveness */
@media screen and (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: block;
    }
}

/* Table Responsiveness */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .table {
        min-width: 650px;
    }
}