/*
Theme Name: Dr. Laura Child Theme
Theme URI: https://drlaura.gr
Description: Modern medical website with Bootstrap 5 - Child theme with optimizations
Author: Dr. Laura
Template: twentytwentyfive
Version: 2.0.0
*/

/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4ade80;
    --info-color: #3b82f6;
    --warning-color: #fbbf24;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   GLOBAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--light-color);
    overflow-x: hidden;
}

/* Hide default WordPress page title - CRITICAL */
.entry-header,
.wp-block-post-title,
h1.wp-block-post-title,
h1.entry-title,
.page .entry-title,
.wp-site-blocks > .wp-block-post-title,
header.entry-header,
.wp-block-group__inner-container > .wp-block-post-title,
.entry-content > .wp-block-post-title,
body.page h1.wp-block-post-title,
article h1.wp-block-post-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Ensure content starts immediately */
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.wp-site-blocks {
    padding-top: 0 !important;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===========================
   HERO SECTIONS
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    padding: 3rem 1.5rem !important;
    text-align: center;
    margin-bottom: 3rem !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.hero-section * {
    color: white !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section h1, .hero-section h2, .hero-section h3 {
    color: white !important;
    position: relative;
    z-index: 1;
}

/* ===========================
   CARDS & CONTAINERS
   =========================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 0;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   IMAGES
   =========================== */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.entry-content img {
    box-shadow: var(--box-shadow);
    margin: 2rem auto;
    display: block;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-pulse:hover {
    animation: pulse 1s infinite;
}

/* ===========================
   GRADIENT BACKGROUNDS
   =========================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* ===========================
   BLOCKQUOTES
   =========================== */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

/* ===========================
   LISTS
   =========================== */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.entry-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.entry-content ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* ===========================
   LINKS
   =========================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===========================
   NAVBAR (if needed)
   =========================== */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   FOOTER
   =========================== */
#drlaura-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    margin-top: 5rem !important;
}

#drlaura-footer h3 {
    color: white !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#drlaura-footer a {
    transition: var(--transition);
}

#drlaura-footer a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   WCAG CONTRAST FIXES - CRITICAL
   =========================== */

/* Light backgrounds must have dark text (WCAG AAA: 12.6:1) */
.alert-light,
.bg-light {
    background-color: #f8f9fa !important;
    color: #1e293b !important;
}

.alert-light *,
.bg-light * {
    color: #1e293b !important;
}

.alert-light .fw-semibold,
.alert-light span,
.alert-light h1,
.alert-light h2,
.alert-light h3,
.alert-light h4,
.alert-light h5,
.alert-light h6,
.alert-light p,
.alert-light .lead,
.alert-light i {
    color: #1e293b !important;
}

/* Success alerts - ensure dark text on light green */
.alert-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.alert-success * {
    color: #065f46 !important;
}

/* Ensure all gradient backgrounds have white text */
.bg-gradient-primary,
.bg-gradient-primary *,
.text-white,
.text-white * {
    color: white !important;
}

/* Badge overrides for proper contrast */
.badge.bg-primary {
    background-color: #667eea !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #fbbf24 !important;
    color: #1e293b !important;
}

.badge.bg-success {
    background-color: #10b981 !important;
    color: white !important;
}

.badge.text-dark {
    color: #1e293b !important;
}

/* ===========================
   THEME TOGGLE BUTTON
   =========================== */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a !important;
        --text-color: #e4e4e7 !important;
        --text-light: #a1a1aa !important;
        --dark-color: #fafafa !important;
        --wp--preset--color--base: #1a1a1a !important;
        --wp--preset--color--contrast: #fafafa !important;
    }

    body,
    body.page,
    .wp-site-blocks {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        color: #e4e4e7 !important;
    }

    .card {
        background: #27272a !important;
        background-color: #27272a !important;
        color: #e4e4e7 !important;
    }

    .card-title {
        color: #a78bfa !important;
    }

    .card-text {
        color: #a1a1aa !important;
    }

    .text-muted {
        color: #a1a1aa !important;
    }

    .alert-light {
        background: #3f3f46 !important;
        background-color: #3f3f46 !important;
        color: #e4e4e7 !important;
    }

    .alert-light * {
        color: #e4e4e7 !important;
    }

    .bg-light {
        background: #27272a !important;
        background-color: #27272a !important;
        color: #e4e4e7 !important;
    }

    .bg-light * {
        color: #e4e4e7 !important;
    }

    .alert-success {
        background: #064e3b !important;
        background-color: #064e3b !important;
        color: #a7f3d0 !important;
    }

    .alert-success * {
        color: #a7f3d0 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #fafafa !important;
    }

    p {
        color: #a1a1aa !important;
    }

    /* WordPress specific overrides */
    .entry-content,
    .wp-block-post-content,
    article {
        background: #1a1a1a !important;
        color: #e4e4e7 !important;
    }

    /* Navbar in dark mode */
    .navbar {
        background: #27272a !important;
        border-bottom: 1px solid #3f3f46;
    }

    /* Footer in dark mode */
    #drlaura-footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    }
}

/* Manual dark mode toggle */
[data-theme="dark"] {
    --light-color: #1a1a1a !important;
    --text-color: #e4e4e7 !important;
    --text-light: #a1a1aa !important;
    --dark-color: #fafafa !important;
    --wp--preset--color--base: #1a1a1a !important;
    --wp--preset--color--contrast: #fafafa !important;
}

[data-theme="dark"] body,
[data-theme="dark"] body.page,
[data-theme="dark"] .wp-site-blocks {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #e4e4e7 !important;
}

[data-theme="dark"] .card {
    background: #27272a !important;
    background-color: #27272a !important;
    color: #e4e4e7 !important;
}

[data-theme="dark"] .card-title {
    color: #a78bfa !important;
}

[data-theme="dark"] .card-text {
    color: #a1a1aa !important;
}

[data-theme="dark"] .text-muted {
    color: #a1a1aa !important;
}

[data-theme="dark"] .alert-light {
    background: #3f3f46 !important;
    background-color: #3f3f46 !important;
    color: #e4e4e7 !important;
}

[data-theme="dark"] .alert-light * {
    color: #e4e4e7 !important;
}

[data-theme="dark"] .bg-light {
    background: #27272a !important;
    background-color: #27272a !important;
    color: #e4e4e7 !important;
}

[data-theme="dark"] .bg-light * {
    color: #e4e4e7 !important;
}

[data-theme="dark"] .alert-success {
    background: #064e3b !important;
    background-color: #064e3b !important;
    color: #a7f3d0 !important;
}

[data-theme="dark"] .alert-success * {
    color: #a7f3d0 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #fafafa !important;
}

[data-theme="dark"] p {
    color: #a1a1aa !important;
}

[data-theme="dark"] .entry-content,
[data-theme="dark"] .wp-block-post-content,
[data-theme="dark"] article {
    background: #1a1a1a !important;
    color: #e4e4e7 !important;
}

[data-theme="dark"] .navbar {
    background: #27272a !important;
    border-bottom: 1px solid #3f3f46;
}

[data-theme="dark"] #drlaura-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Dark mode button fixes */
[data-theme="dark"] .btn-light {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border-color: #f8fafc !important;
}

[data-theme="dark"] .btn-light:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .btn-light i,
[data-theme="dark"] .btn-light * {
    color: #1e293b !important;
}

@media (prefers-color-scheme: dark) {
    .btn-light {
        background-color: #f8fafc !important;
        color: #1e293b !important;
        border-color: #f8fafc !important;
    }

    .btn-light:hover {
        background-color: #e2e8f0 !important;
        color: #0f172a !important;
    }

    .btn-light i,
    .btn-light * {
        color: #1e293b !important;
    }
}

[data-theme="dark"] .theme-toggle-btn {
    border-color: #a78bfa;
    color: #a78bfa;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: #a78bfa;
    color: white;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }

    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }

    .display-5 { font-size: 1.75rem !important; }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Fix hours layout on mobile - stack vertically */
    .alert-light .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .alert-light .badge {
        align-self: flex-start !important;
        margin-top: 0.25rem;
    }
}

/* ===========================
   LOADING ANIMATIONS
   =========================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===========================
   BADGES & PILLS
   =========================== */
.badge {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ===========================
   CONTENT SECTIONS
   =========================== */
.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   CUSTOM GRID LAYOUTS
   =========================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* ===========================
   CONTACT INFO STYLING
   =========================== */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
}

.contact-info li:hover {
    background: #f8fafc;
    padding-left: 1.5rem;
}

.contact-info li:last-child {
    border-bottom: none;
}

/* ===========================
   ICON STYLING
   =========================== */
.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
