/**
 * Flow Office Layout - Modern Responsive Stylesheet
 * Version: 1.0.0
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */

/* ============================================
   Hide Duplicate Theme Titles
   ============================================ */

/* Hide duplicate titles from theme when using Flow Office Layout */
body:has(.flow-office-layout-wrapper) .site-content > .entry-header h1:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) .site-content > header h1:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) .content-area > .entry-header h1:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) .content-area > header h1:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) .page-header h1:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) .entry-title:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) h1.page-title:not(.flow-page-title),
body:has(.flow-office-layout-wrapper) h1.entry-title:not(.flow-page-title),
.flow-office-layout-wrapper ~ .entry-title,
.flow-office-layout-wrapper ~ h1.entry-title,
.site-content .entry-header .entry-title:not(.flow-page-title),
.page-header h1:not(.flow-page-title),
.entry-header h1:not(.flow-page-title),
.page-title:not(.flow-page-title),
article .entry-title:not(.flow-page-title),
.site-content > h1:not(.flow-page-title),
.content-area > h1:not(.flow-page-title),
main > h1:not(.flow-page-title) {
    display: none !important;
}

/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
    --flow-primary-color: #667eea;
    --flow-primary-dark: #5568d3;
    --flow-secondary-color: #764ba2;
    --flow-accent-color: #f093fb;
    --flow-text-color: #2d3748;
    --flow-text-light: #718096;
    --flow-bg-color: #ffffff;
    --flow-bg-light: #f7fafc;
    --flow-border-color: #e2e8f0;
    --flow-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --flow-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --flow-radius: 8px;
    --flow-radius-lg: 12px;
    --flow-transition: all 0.3s ease;
    --flow-container-width: 1200px;
    --flow-sidebar-width: 320px;
}

/* ============================================
   Hero Section (Full Width Header Image)
   ============================================ */

.flow-hero-section {
    width: 100%;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.flow-hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.flow-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    border-radius: 20px;
}

.flow-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
    border-radius: 20px;
}

.flow-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.flow-office-layout-wrapper {
    background-color: var(--flow-bg-light);
    min-height: 100vh;
    padding: 2rem 0;
}

/* ============================================
   Container & Layout
   ============================================ */

.flow-container {
    max-width: var(--flow-container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flow-content-wrapper {
    display: grid;
    grid-template-columns: 1fr var(--flow-sidebar-width);
    gap: 2.5rem;
    align-items: start;
    width: 100%;
}

.flow-main-content {
    background: var(--flow-bg-color);
    border-radius: var(--flow-radius-lg);
    box-shadow: var(--flow-shadow);
    overflow: hidden;
    min-width: 0; /* Prevents grid overflow */
}

.flow-sidebar {
    position: sticky;
    top: 2rem;
    width: 100%;
    min-width: 0; /* Prevents grid overflow */
    display: block !important; /* Ensure sidebar is visible */
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   Page Header
   ============================================ */

.flow-page-header {
    margin-bottom: 0;
}

.flow-header-image {
    width: 100%;
    overflow: hidden;
    max-height: 400px;
}

.flow-featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ============================================
   Page Content
   ============================================ */

.flow-page-content {
    padding: 3rem;
}

.flow-entry-header {
    margin-bottom: 2rem;
    padding: 2rem 0 1.5rem 0;
    border-bottom: 2px solid var(--flow-border-color);
}

.flow-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--flow-text-color);
    margin: 0;
    background: linear-gradient(135deg, var(--flow-primary-color) 0%, var(--flow-secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--flow-text-color);
}

.flow-entry-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--flow-text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--flow-primary-color);
}

.flow-entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--flow-text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.flow-entry-content p {
    margin-bottom: 1.5rem;
    color: var(--flow-text-light);
}

.flow-entry-content ul,
.flow-entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.flow-entry-content li {
    margin-bottom: 0.75rem;
    color: var(--flow-text-light);
    line-height: 1.8;
}

.flow-entry-content li strong {
    color: var(--flow-primary-color);
    font-weight: 600;
}

.flow-entry-content a {
    color: var(--flow-primary-color);
    text-decoration: none;
    transition: var(--flow-transition);
    border-bottom: 1px solid transparent;
}

.flow-entry-content a:hover {
    color: var(--flow-primary-dark);
    border-bottom-color: var(--flow-primary-dark);
}

.flow-random-spaces {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--flow-border-color);
}

/* ============================================
   CTA Section
   ============================================ */

.flow-cta-section {
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--flow-primary-color) 0%, var(--flow-secondary-color) 100%);
    border-radius: var(--flow-radius-lg);
    color: white;
    text-align: center;
    box-shadow: var(--flow-shadow-lg);
}

.flow-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.flow-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.flow-cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.flow-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.flow-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--flow-radius);
    transition: var(--flow-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.flow-btn-primary {
    background: white;
    color: var(--flow-primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flow-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--flow-primary-dark);
}

.flow-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.flow-btn-secondary:hover {
    background: white;
    color: var(--flow-primary-color);
    transform: translateY(-2px);
}

/* ============================================
   Sidebar Styles
   ============================================ */

.flow-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.flow-sidebar-content > * {
    width: 100%;
}

.flow-station-widget {
    background: var(--flow-bg-color);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow);
    transition: var(--flow-transition);
}

.flow-station-widget:hover {
    box-shadow: var(--flow-shadow-lg);
    transform: translateY(-2px);
}

.flow-station-widget .widget-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--flow-text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--flow-primary-color);
}

/* Default Station Info Cards */
.flow-default-station-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-station-card,
.flow-quick-info-card {
    background: var(--flow-bg-color);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow);
    transition: var(--flow-transition);
}

.flow-station-card:hover,
.flow-quick-info-card:hover {
    box-shadow: var(--flow-shadow-lg);
    transform: translateY(-2px);
}

.flow-station-title,
.flow-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--flow-text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--flow-primary-color);
}

.flow-station-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-station-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--flow-border-color);
}

.flow-station-item:last-child {
    border-bottom: none;
}

.flow-station-label {
    font-weight: 600;
    color: var(--flow-text-color);
}

.flow-station-value {
    color: var(--flow-primary-color);
    font-weight: 500;
}

.flow-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flow-info-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--flow-text-light);
    line-height: 1.6;
}

.flow-info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--flow-primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.flow-info-list li:not(:last-child) {
    border-bottom: 1px solid var(--flow-border-color);
}

.flow-station-additional {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--flow-border-color);
    color: var(--flow-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Testimonial Widget Styles
   ============================================ */

.flow-testimonial-card {
    background: var(--flow-bg-color);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow);
    transition: var(--flow-transition);
    border-left: 4px solid var(--flow-primary-color);
}

.flow-testimonial-card:hover {
    box-shadow: var(--flow-shadow-lg);
    transform: translateY(-2px);
}

.flow-testimonial-rating {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.flow-star {
    color: #d1d5db;
    font-size: 1.25rem;
    line-height: 1;
}

.flow-star-filled {
    color: #fbbf24;
}

.flow-testimonial-text {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--flow-text-color);
    font-style: italic;
}

.flow-testimonial-text p {
    margin: 0;
    color: var(--flow-text-color);
}

.flow-testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--flow-border-color);
}

.flow-testimonial-author-name {
    font-weight: 600;
    color: var(--flow-text-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.flow-testimonial-author-details {
    font-size: 0.9rem;
    color: var(--flow-text-light);
}

/* ============================================
   FOMO Widget Styles
   ============================================ */

.flow-fomo-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow-lg);
    border: 2px solid #fbbf24;
    text-align: center;
    transition: var(--flow-transition);
}

.flow-fomo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.flow-fomo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-fomo-stat {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--flow-radius);
}

.flow-fomo-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.flow-fomo-stat-label {
    font-size: 1rem;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-fomo-message {
    margin-bottom: 1.5rem;
    color: #78350f;
    font-size: 1rem;
    line-height: 1.6;
}

.flow-fomo-message p {
    margin: 0;
    color: #78350f;
}

.flow-fomo-timer {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--flow-radius);
}

.flow-fomo-timer-label {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-fomo-timer-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.flow-fomo-cta {
    margin-top: 1.5rem;
}

.flow-btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* ============================================
   Sidebar CTA Widget
   ============================================ */

.flow-sidebar-cta {
    background: linear-gradient(135deg, var(--flow-primary-color) 0%, var(--flow-secondary-color) 100%);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow-lg);
    text-align: center;
    color: white;
}

.flow-sidebar-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.flow-sidebar-cta-text {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.flow-sidebar-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Feature Cards Widget
   ============================================ */

.flow-feature-card {
    background: var(--flow-bg-color);
    border-radius: var(--flow-radius-lg);
    padding: 2rem;
    box-shadow: var(--flow-shadow);
    transition: var(--flow-transition);
    text-align: center;
    position: relative;
}

.flow-feature-card:hover {
    box-shadow: var(--flow-shadow-lg);
    transform: translateY(-3px);
}

.flow-feature-card.flow-feature-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

.flow-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.flow-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--flow-text-color);
    margin-bottom: 1rem;
}

.flow-feature-highlight .flow-feature-title {
    color: #92400e;
}

.flow-feature-description {
    color: var(--flow-text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.flow-feature-highlight .flow-feature-description {
    color: #78350f;
}

.flow-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.flow-feature-list li {
    padding: 0.5rem 0;
    color: var(--flow-text-light);
    font-size: 0.95rem;
}

.flow-feature-highlight .flow-feature-list li {
    color: #78350f;
}

.flow-feature-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--flow-radius);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .flow-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .flow-sidebar {
        position: static;
    }
    
    .flow-sidebar-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .flow-hero-section {
        padding: 0 1rem;
    }
    
    .flow-hero-image {
        height: 400px;
        border-radius: 15px;
    }
    
    .flow-hero-img {
        border-radius: 15px;
    }
    
    .flow-hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .flow-hero-overlay {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .flow-office-layout-wrapper {
        padding: 1rem 0;
    }
    
    .flow-container {
        padding: 0 1rem;
    }
    
    .flow-page-content {
        padding: 2rem 1.5rem;
    }
    
    .flow-page-title {
        font-size: 2rem;
    }
    
    .flow-entry-content h2 {
        font-size: 1.75rem;
    }
    
    .flow-entry-content {
        font-size: 1rem;
    }
    
    .flow-cta-section {
        padding: 2rem 1.5rem;
    }
    
    .flow-cta-title {
        font-size: 1.75rem;
    }
    
    .flow-cta-buttons {
        flex-direction: column;
    }
    
    .flow-btn {
        width: 100%;
    }
    
    .flow-station-card,
    .flow-quick-info-card {
        padding: 1.5rem;
    }
    
    .flow-sidebar-content {
        grid-template-columns: 1fr;
    }
    
    .flow-fomo-stat-number {
        font-size: 2.5rem;
    }
    
    .flow-testimonial-card,
    .flow-fomo-card {
        padding: 1.5rem;
    }
    
    .flow-sidebar-cta {
        padding: 1.5rem;
    }
    
    .flow-sidebar-cta-title {
        font-size: 1.25rem;
    }
    
    .flow-feature-card {
        padding: 1.5rem;
    }
    
    .flow-feature-icon {
        font-size: 2.5rem;
    }
    
    .flow-feature-title {
        font-size: 1.25rem;
    }
    
    .flow-feature-badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .flow-hero-section {
        padding: 0 0.5rem;
    }
    
    .flow-hero-image {
        height: 300px;
        border-radius: 12px;
    }
    
    .flow-hero-img {
        border-radius: 12px;
    }
    
    .flow-hero-title {
        font-size: 1.5rem;
    }
    
    .flow-hero-overlay {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .flow-page-title {
        font-size: 1.75rem;
    }
    
    .flow-entry-content h2 {
        font-size: 1.5rem;
    }
    
    .flow-cta-title {
        font-size: 1.5rem;
    }
    
    .flow-cta-description {
        font-size: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .flow-sidebar {
        display: none;
    }
    
    .flow-cta-section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-animated {
    animation: fadeInUp 0.6s ease-out;
}

.flow-station-widget,
.flow-cta-section {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.flow-station-widget.flow-animated,
.flow-cta-section.flow-animated {
    opacity: 1;
}

/* ============================================
   Accessibility
   ============================================ */

.flow-btn:focus,
.flow-entry-content a:focus {
    outline: 3px solid var(--flow-primary-color);
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.flow-main-content:focus {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

