/* LipoApp Custom Styles */

:root {
    --primary-color: #efc1b2;
    --secondary-color: #f5d9cc;
    --accent-color: #FFB6C1;
    --success-color: #90EE90;
    --warning-color: #F0E68C;
    --danger-color: #FF6B6B;
    --light-bg: #fdf9f7;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
}

/* Bootstrap Color Overrides */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #e0a689;
    border-color: #e0a689;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    color: var(--text-muted);
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner a {
    color: white;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f9ede8 100%);
    min-height: auto;
    padding-bottom: 1rem;
}

/* Animated Text Section */
.animated-text-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f9ede8 100%);
    padding-top: 0;
    padding-bottom: 4rem;
}

.animated-text-container {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-text {
    opacity: 0;
    transform: translateX(-100px) translateX(-50%);
    transition: all 0.8s ease-out;
    margin: 0;
    font-size: 2.5rem;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform-origin: center center;
}

.animated-text.show {
    opacity: 1;
    transform: translateX(-50%);
}

.animated-text.hide {
    opacity: 0;
    transform: translateX(100px) translateX(-50%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-features {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

/* App Store Buttons */
.app-buttons {
    margin-top: 2rem;
}

.app-store-btn {
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: not-allowed;
}

.app-store-btn.disabled {
    pointer-events: none;
}

.app-store-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    opacity: 1;
}

/* Hero Image Animation */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.floating-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.feature-card {
    position: absolute;
    width: 140px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    border-radius: 1rem;
}

.feature-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.feature-card:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.feature-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features-section {
    background-color: var(--light-bg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-icon i {
    display: block;
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Info Items */
.info-list {
    list-style: none;
    padding: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* Illustrations */
.illustration {
    position: relative;
    padding: 3rem;
}

.illustration-icon {
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.support-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 280px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e0a689 100%);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group-lg .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.input-group-lg .btn {
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Footer */
footer {
    background-color: #1a252f !important;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Legal Pages */
.company-info address {
    font-style: normal;
    line-height: 1.6;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #f9ede8;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-warning {
    background-color: #FFF9E6;
    border-left-color: var(--warning-color);
    color: #8B6914;
}

.alert-secondary {
    background-color: #F8F9FA;
    border-left-color: var(--text-muted);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-icon {
        font-size: 4rem;
    }
    
    .floating-cards {
        display: none;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-control {
        border-radius: 0.5rem;
        margin-bottom: 0;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border: none;
    }
    
    .newsletter-form .btn {
        border-radius: 0.5rem;
        margin-bottom: 0;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .animated-text {
        font-size: 1.5rem;
    }
    
    .animated-text-container {
        height: 60px;
    }
    
    /* Newsletter responsive text */
    .newsletter-section h2 {
        font-size: 1.4rem;
    }
    
    .newsletter-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .animated-text {
        font-size: 1.2rem;
    }
    
    .animated-text-container {
        height: 50px;
    }
    
    /* Newsletter responsive text for small screens */
    .newsletter-section h2 {
        font-size: 1.1rem;
    }
    
    .newsletter-section .lead {
        font-size: 0.9rem;
    }
    
    .newsletter-section .small {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .cookie-banner .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-banner .text-end {
        text-align: center !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-card {
        animation: none;
    }
    
    .card:hover,
    .info-item:hover,
    .feature-item:hover {
        transform: none;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 84, 126, 0.25);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .navbar,
    footer,
    .btn,
    .floating-cards {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
