/* style.css */
/*
Theme Name: Divi Child 6
Description: Custom child theme for Divi with React-like blog layout
Template: Divi
Version: 1.0.4
Author: Sara
*/

/* Import parent theme styles */
@import url("../Divi/style.css");

/* =============================================================================
   GLOBAL STYLES
============================================================================= */

.custom-blog-layout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.custom-blog-layout .min-h-screen {
    min-height: 100vh !important;
    background: linear-gradient(to right, #132741, #3264A7) !important;
}

/* Force override page container padding */
#page-container #main-content {
    padding-top: 0 !important;
}

/* =============================================================================
   UTILITIES (Tailwind-like)
============================================================================= */

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gray-900 {
    background-color: #111827;
}

.text-white {
    color: white;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

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

.mb-6 {
    margin-bottom: 1.5rem;
}

.inline-block {
    display: inline-block;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.text-sm {
    font-size: 0.875rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.leading-tight {
    line-height: 1.25;
}

.flex {
    display: flex;
}

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

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

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.mr-2 {
    margin-right: 0.5rem;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.max-h-96 {
    max-height: 24rem;
}

.object-cover {
    object-fit: cover;
}

.prose {
    color: #374151;
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
}

.prose-invert {
    color: #d1d5db;
}

.max-w-none {
    max-width: none;
}

.mt-12 {
    margin-top: 3rem;
}

.pt-8 {
    padding-top: 2rem;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-700 {
    border-color: #374151;
}

.text-lg {
    font-size: 1.125rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.bg-gray-700 {
    background-color: #374151;
}

.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.p-6 {
    padding: 1.5rem;
}

.mr-4 {
    margin-right: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-gray-300 {
    color: #d1d5db;
}

.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.p-4 {
    padding: 1rem;
}

.group {
    /* Group class for hover effects */
}

.group-hover\:text-yellow-400:hover {
    color: #fbbf24;
}

.text-right {
    text-align: right;
}

/* =============================================================================
   RESPONSIVE UTILITIES
============================================================================= */

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .featured-carousel .absolute.left-0,
    .featured-carousel .absolute.right-0 {
        display: none;
    }

    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 980px) {
    .blog-wrapper {
        padding-top: 60px !important;
    }

    .hero-section {
        padding-top: calc(2.5rem + 60px) !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0;
        padding-top: calc(1rem + 70px) !important;
    }

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

    .content-grid {
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .info-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .content-grid {
        flex-direction: row;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}

@media (min-width: 1200px) {
    .blog-wrapper {
        padding-top: 100px !important;
    }

    .hero-section {
        padding-top: calc(2.5rem + 100px) !important;
    }
}

/* =============================================================================
   ACCESSIBILITY & PERFORMANCE
============================================================================= */

@media (prefers-contrast: high) {
    .bg-gray-800 {
        background-color: #000;
        border: 1px solid #fff;
    }

    .text-gray-400 {
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .transition-transform,
    .transition-opacity,
    .transition-colors {
        transition: none;
    }

    .hover\:scale-105:hover {
        transform: none;
    }

    .featured-card:hover {
        transform: none;
    }

    .post-card:hover {
        transform: none;
    }
}

/* =============================================================================
   FOCUS STATES
============================================================================= */

.category-tab:focus,
.featured-button:focus,
.post-card:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-button:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* =============================================================================
   PRINT STYLES (GLOBAL)
============================================================================= */

@media print {
    .blog-wrapper,
    .hero-section {
        background: #fff !important;
        color: #000 !important;
    }

    .bg-gray-800,
    .bg-gray-900 {
        background: #fff !important;
        color: #000 !important;
    }

    .text-white {
        color: #000 !important;
    }

    .featured-button,
    .category-tabs,
    .map-container {
        display: none;
    }
}
