/**
 * GinecologPlus Medical Theme - Main Styles
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables (fallback values)
   ========================================================================== */
:root {
    --gplus-primary: #0066cc;
    --gplus-secondary: #4caf50;
    --gplus-accent: #e91e63;
    
    /* Additional variables */
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --border-color: #ddd;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--gplus-primary);
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.working-hours-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--gplus-primary);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu li.active > a {
    color: var(--gplus-primary);
    background-color: rgba(0, 102, 204, 0.1);
}

/* Dropdown Menu */
.nav-menu .has-dropdown > a {
    padding-right: 1.5rem;
}

.dropdown-icon {
    font-size: 0.625rem;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.nav-menu li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.625rem 1rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
}

/* Sub-dropdown */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-navigation {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: 999;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-navigation.active {
    display: block;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--gplus-primary);
    background-color: var(--bg-light);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    display: none;
}

.mobile-has-children.active .mobile-submenu {
    display: block;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    min-height: 400px;
    padding: 2rem 0;
}

.page-header {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    color: var(--gplus-primary);
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

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

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--gplus-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.entry-content th {
    background-color: var(--bg-light);
    font-weight: 600;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--gplus-primary);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gplus-secondary);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.service-title a {
    color: var(--text-color);
    text-decoration: none;
}

.service-title a:hover {
    color: var(--gplus-primary);
}

.service-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.service-link {
    color: var(--gplus-primary);
    font-weight: 600;
    text-decoration: none;
}

.service-link:hover {
    color: var(--gplus-accent);
}

/* ==========================================================================
   Doctors Section
   ========================================================================== */
.doctors-section {
    padding: 4rem 0;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.doctor-card:hover {
    box-shadow: var(--shadow-md);
}

.doctor-photo {
    width: 150px;
    height: 150px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gplus-primary);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    padding: 0 1.5rem 2rem;
}

.doctor-name {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.doctor-position {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.doctor-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.doctor-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gplus-primary);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    line-height: 1.8;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.contact-info-content p {
    margin: 0;
    color: var(--text-light);
}

.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gplus-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-messages.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gplus-primary);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-legal {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--gplus-primary);
    color: #fff;
}

.btn:hover {
    background-color: var(--gplus-accent);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--gplus-secondary);
}

.btn-accent {
    background-color: var(--gplus-accent);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--gplus-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Appointment Button (sticky on mobile) */
.appointment-btn-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gplus-primary);
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    z-index: 1000;
    display: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--gplus-primary);
    color: #fff;
}

.pagination .current {
    background-color: var(--gplus-primary);
    color: #fff;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: var(--gplus-primary);
}

/* ==========================================================================
   Social Sharing
   ========================================================================== */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 500;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.share-link:hover {
    background-color: var(--gplus-primary);
    color: #fff;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget-area {
    padding-left: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gplus-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.75rem;
}

.widget a {
    color: var(--text-color);
}

.widget a:hover {
    color: var(--gplus-primary);
}

/* ==========================================================================
   Services Sidebar
   ========================================================================== */
.services-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.services-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.services-menu li {
    border-bottom: 1px solid var(--border-color);
}

.services-menu li:last-child {
    border-bottom: none;
}

.services-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.services-menu a:hover,
.services-menu li.active a {
    background-color: var(--gplus-primary);
    color: #fff;
}

.services-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--bg-light);
}

.services-submenu a {
    padding-left: 2.5rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
