/* ==========================================================================
   EFP CUSTOM UTILITY CLASSES
   Use these for patterns not covered by MudBlazor utilities
   MudBlazor utilities should be used first (pa-4, mb-2, d-flex, etc.)
   ========================================================================== */

/* Text & Typography Utilities */
.text-wrap-break {
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
}

.text-small {
    font-size: 0.75rem;
}

.text-line-height-tight {
    line-height: 1.2;
}

.select-item-secondary {
    color: var(--mud-palette-text-secondary);
}

/* Width Utilities (specific sizes not in MudBlazor) */
.min-width-field {
    min-width: 250px;
}

.max-width-field-sm {
    max-width: 100px;
}

/* Font Awesome Color Utilities */
.fa-icon-burgundy {
    --fa-primary-color: #511f2e;
    --fa-secondary-color: #511f2e;
}

/* Object Fit Utilities */
.object-fit-cover {
    object-fit: cover;
}

/* Editable Element States */
.editable-hover {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.editable-hover:hover {
    opacity: 0.8;
}

/* Background Utilities (beyond MudBlazor's theme colors) */
.bg-mud-background-grey {
    background-color: var(--mud-palette-background-grey);
}

/* ==========================================================================
   COMPONENT-SPECIFIC STYLES
   ========================================================================== */

.nav-menu{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bottom-nav-group {
    margin-top: auto;
}

.equal-height-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.equal-height-grid > .mud-grid-item {
    display: flex;
}

.equal-height-grid > .mud-grid-item > .mud-card {
    flex-grow: 1;
}

/* Water container empty state animations */
@keyframes pulsate {
    0%, 100% {
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(76, 175, 80, 0.6);
        transform: scale(1.02);
    }
}

.mud-button-pulsate {
    animation: pulsate 2s infinite;
    transition: all 0.3s ease;
}

/* ==========================================================================
   COMPLEXITY LEVEL SELECTOR DROPDOWN STYLES
   Note: These styles are in global CSS instead of scoped CSS because
   conditionally rendered dropdown components don't always receive scoped
   CSS attributes in Blazor Server/WASM hybrid projects, causing overlay
   positioning to fail.
   ========================================================================== */

.complexity-level-selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1400;
    width: 350px;
    margin-top: 4px;
    box-shadow: var(--mud-elevation-8);
    border-radius: var(--mud-border-radius-default);
}

/* Landing Page Styles */
.landing-page {
    background-color: var(--mud-palette-background);
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, rgba(var(--mud-palette-primary-rgb), 0.05) 0%, rgba(var(--mud-palette-secondary-rgb), 0.05) 100%);
    border-radius: 0 0 2rem 2rem;
}

.hero-title {
    font-weight: 700;
    line-height: 1.2;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-subtitle {
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-image-container {
    position: relative;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
}

.hero-image-container .hero-female-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 70%;
    object-fit: contain;
    object-position: bottom right;
    transform: translateX(0);
    opacity: 1;
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.features-section {
    background-color: var(--mud-palette-background);
}

.section-title {
    font-weight: 600;
}

.feature-card {
    transition: transform 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card .mud-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card .mud-card-content > div:last-child {
    margin-top: auto;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.cta-section {
    margin: 2rem 0;
    border-radius: 1rem;
}

.cta-title {
    font-weight: 600;
}

.cta-button {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: none;
    font-size: 1.1rem;
}

.footer-section {
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-top: 2rem;
}

/* Subscription Dialog Styles */
.subscription-card {
    border: 2px solid var(--mud-palette-primary);
    background: linear-gradient(135deg, rgba(var(--mud-palette-primary-rgb), 0.02) 0%, rgba(var(--mud-palette-secondary-rgb), 0.02) 100%);
}

.subscription-cta-button {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--mud-palette-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.subscription-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--mud-palette-primary-rgb), 0.4);
}

.features-list {
    text-align: left;
    width: 100%;
}

.features-list .mud-stack-row {
    gap: 0.75rem;
}

.features-list .mud-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.hero-logo-small {
    height: 24px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

@media (max-width: 960px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-logo {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .text-right {
        text-align: left !important;
    }
    
    .hero-image-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .hero-female-image {
        max-width: 85%;
        height: 90%;
    }
}
