/* Marathi Vivaah - Responsive CSS */
/* Mobile-First Responsive Design */

/* ========== MOBILE-FIRST RESPONSIVE DESIGN ========== */

/* Extra Small Devices (320px and up) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0 !important;
        min-height: 60vh !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Search Preview */
    .search-preview {
        padding: 1rem 0 !important;
    }
    
    .search-preview-card {
        padding: 1.5rem !important;
    }
    
    .search-form .form-group {
        margin-bottom: 1rem !important;
    }
    
    /* Profile Cards */
    .profile-card {
        margin-bottom: 1.5rem !important;
    }
    
    .profile-image {
        height: 200px !important;
    }
    
    .profile-details {
        padding: 1rem !important;
    }
    
    .profile-name {
        font-size: 1.1rem !important;
    }
    
    .profile-info {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .profile-actions {
        padding: 1rem !important;
    }
    
    .profile-actions .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Dashboard */
    .dashboard-stats .stat-card {
        margin-bottom: 1rem !important;
    }
    
    .dashboard-photos .photo-item {
        width: 100px !important;
        height: 100px !important;
        margin: 0.25rem !important;
    }
    
    .quick-actions .btn {
        font-size: 0.8rem !important;
        padding: 0.75rem 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .quick-actions .btn i {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Forms */
    .form-control {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.85rem !important;
    }
    
    .table th,
    .table td {
        padding: 0.5rem !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem !important;
    }
    
    .footer-widget h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-widget ul li {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .footer-bottom {
        font-size: 0.8rem !important;
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Photos Section */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .photo-item {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Profile View */
    .profile-sidebar {
        margin-bottom: 2rem !important;
    }
    
    .profile-photo-main {
        max-width: 200px !important;
        height: 200px !important;
    }
    
    .profile-actions-mobile {
        display: block !important;
    }
    
    .profile-actions-desktop {
        display: none !important;
    }
    
    /* Search Results */
    .search-filters {
        margin-bottom: 1rem !important;
    }
    
    .search-filters .card-body {
        padding: 1rem !important;
    }
    
    .search-results .profile-card {
        margin-bottom: 1rem !important;
    }
    
    /* Contact Form */
    .contact-info {
        margin-top: 2rem !important;
    }
    
    .contact-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Success Stories */
    .success-card {
        margin-bottom: 1rem !important;
    }
    
    .couple-photo img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* About Us */
    .feature-box {
        margin-bottom: 1rem !important;
    }
    
    .team-card {
        margin-bottom: 1rem !important;
    }
    
    .team-card img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* FAQ */
    .accordion-header {
        font-size: 0.9rem !important;
        padding: 1rem !important;
    }
    
    .accordion-body {
        font-size: 0.85rem !important;
        padding: 1rem !important;
    }
    
    /* Legal Pages */
    .legal-content {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .legal-content h4 {
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
    }
    
    .legal-content ul {
        padding-left: 1.5rem !important;
    }
    
    .legal-content li {
        margin-bottom: 0.5rem !important;
    }
    
    /* Mobile Specific */
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Mobile spacing */
    .mb-mobile-2 {
        margin-bottom: 1rem !important;
    }
    
    .mt-mobile-2 {
        margin-top: 1rem !important;
    }
    
    .p-mobile-2 {
        padding: 1rem !important;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    /* Profile Cards */
    .profile-image {
        height: 250px !important;
    }
    
    /* Dashboard */
    .dashboard-photos .photo-item {
        width: 120px !important;
        height: 120px !important;
    }
    
    .quick-actions .btn {
        font-size: 0.85rem !important;
        padding: 1rem 0.75rem !important;
    }
    
    /* Photos Section */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
    
    .photo-item {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Profile View */
    .profile-photo-main {
        max-width: 250px !important;
        height: 250px !important;
    }
    
    /* Mobile/Tablet Specific */
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        font-size: 0.95rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Dashboard */
    .dashboard-photos .photo-item {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Photos Section */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
    
    .photo-item {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Profile View */
    .profile-photo-main {
        max-width: 300px !important;
        height: 300px !important;
    }
    
    /* Tablet Specific */
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    .tablet-only {
        display: block !important;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 0.5rem 1.25rem !important;
    }
    
    /* Dashboard */
    .dashboard-photos .photo-item {
        width: 160px !important;
        height: 160px !important;
    }
    
    /* Photos Section */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
    
    .photo-item {
        width: 160px !important;
        height: 160px !important;
    }
    
    /* Profile View */
    .profile-photo-main {
        max-width: 350px !important;
        height: 350px !important;
    }
    
    /* Desktop Specific */
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    .tablet-only {
        display: none !important;
    }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-title {
        font-size: 4rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 0.5rem 1.5rem !important;
    }
    
    /* Dashboard */
    .dashboard-photos .photo-item {
        width: 180px !important;
        height: 180px !important;
    }
    
    /* Photos Section */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
    
    .photo-item {
        width: 180px !important;
        height: 180px !important;
    }
    
    /* Profile View */
    .profile-photo-main {
        max-width: 400px !important;
        height: 400px !important;
    }
    
    /* Desktop Specific */
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    .tablet-only {
        display: none !important;
    }
}

/* ========== SPECIAL RESPONSIVE FEATURES ========== */

/* Responsive Images */
.img-responsive {
    max-width: 100% !important;
    height: auto !important;
}

.img-circle-responsive {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Responsive Tables */
.table-responsive-stack {
    display: block !important;
}

.table-responsive-stack thead {
    display: none !important;
}

.table-responsive-stack tbody,
.table-responsive-stack tr,
.table-responsive-stack td {
    display: block !important;
    width: 100% !important;
}

.table-responsive-stack tr {
    border: 1px solid #ccc !important;
    border-bottom: 5px solid #ccc !important;
    margin-bottom: 10px !important;
}

.table-responsive-stack td {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
    padding-left: 50% !important;
}

.table-responsive-stack td:before {
    content: attr(data-label) ": " !important;
    position: absolute !important;
    left: 6px !important;
    width: 45% !important;
    padding-right: 10px !important;
    white-space: nowrap !important;
    font-weight: bold !important;
}

/* Responsive Cards */
.card-responsive {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card-responsive:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* Responsive Forms */
.form-responsive .form-group {
    margin-bottom: 1rem !important;
}

.form-responsive .form-control {
    border-radius: 0.375rem !important;
    border: 1px solid #ced4da !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-responsive .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25) !important;
}

/* Responsive Buttons */
.btn-responsive {
    display: inline-block !important;
    font-weight: 500 !important;
    text-align: center !important;
    vertical-align: middle !important;
    user-select: none !important;
    border: 1px solid transparent !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 0.375rem !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.btn-responsive:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Responsive Navigation */
.navbar-responsive {
    padding: 0.5rem 1rem !important;
}

.navbar-responsive .navbar-brand {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.navbar-responsive .navbar-nav {
    margin: 0 !important;
}

.navbar-responsive .nav-link {
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

/* Responsive Footer */
.footer-responsive {
    padding: 3rem 0 2rem !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
}

.footer-responsive .footer-widget h4 {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.footer-responsive .footer-widget ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-responsive .footer-widget ul li {
    margin-bottom: 0.5rem !important;
}

.footer-responsive .footer-widget ul li a {
    color: #bdc3c7 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-responsive .footer-widget ul li a:hover {
    color: white !important;
}

/* ========== TOUCH OPTIMIZATION ========== */

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .card {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */

/* Focus indicators */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor !important;
    }
    
    .card {
        border: 2px solid currentColor !important;
    }
}

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

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

@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}
