/* Component Styles */

/* Enhanced Blog Card Styles - Meditation App Inspired */
.blog-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.blog-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.blog-hero-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.4);
}

/* Glass morphism effect for overlays */
.glass-overlay {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced category buttons */
.category-filter {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.2);
}

.category-filter.active {
    box-shadow: 0 8px 25px -8px rgba(255, 165, 0, 0.4);
}

/* Smooth gradient animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Enhanced card shine effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.card-shine:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Enhanced loading states */
.pulse-gentle {
    animation: pulse-gentle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Text Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Components */
.btn-primary {
    background-color: var(--brand-accent);
    color: white;
    transition: background-color 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background-color: #BF9264;
}

.btn-primary:disabled {
    background-color: var(--brand-secondary);
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--brand-accent);
    color: white;
}

/* Navigation Components */
.nav-link {
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--brand-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--brand-accent);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link.active {
    color: var(--brand-accent);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Form Components */
.form-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.form-checkbox, .form-radio {
    margin-right: 0.5rem;
    accent-color: var(--brand-accent);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--brand-secondary);
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.3);
}

.form-textarea {
    min-height: 100px;
}

/* Modal Components */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    transition: opacity 0.3s;
    padding: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Override Tailwind hidden class specifically for modals */
.modal-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* When modal is shown, override hidden class */
.modal-overlay:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-content {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s;
    position: relative;
}

.modal-content.modal-lg {
    max-width: 800px;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 2rem;
    }
}

/* Blog Components */
.blog-post-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.blog-content p, .blog-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.blog-content a {
    color: var(--brand-accent);
    text-decoration: underline;
}

/* Accordion Components */
.accordion-header {
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: var(--brand-secondary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Modal Container */
#modals-container {
    position: relative;
    z-index: 999;
}

/* Color Swatch Component */
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.color-swatch.selected {
    border-color: var(--brand-dark);
}

/* Homepage Journey Styles */

/* Gradient backgrounds for hero section */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--brand-background) 0%, var(--brand-primary) 100%);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--bg-from), var(--bg-to));
}

/* Brand gradient utilities */
.from-brand-background { --bg-from: var(--brand-background); }
.to-brand-primary { --bg-to: var(--brand-primary); }
.from-brand-primary { --bg-from: var(--brand-primary); }
.to-brand-secondary { --bg-to: var(--brand-secondary); }
.from-brand-primary { --bg-from: var(--brand-primary); }
.to-brand-accent { --bg-to: var(--brand-accent); }

/* Feature section colors */
.from-green-100 { --bg-from: #dcfce7; }
.to-green-200 { --bg-to: #bbf7d0; }
.from-blue-100 { --bg-from: #dbeafe; }
.to-blue-200 { --bg-to: #bfdbfe; }
.from-purple-100 { --bg-from: #f3e8ff; }
.to-purple-200 { --bg-to: #e9d5ff; }

/* Enhanced card styles for homepage */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* App preview mockup styles */
.app-preview-mockup {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* E-book visual enhancement */
.ebook-visual {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.ebook-visual:hover {
    transform: rotate(-1deg) scale(1.05);
}

/* App store button styles */
.app-store-btn {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    cursor: not-allowed;
}

.app-store-btn.google-play {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Newsletter form enhancements */
.newsletter-form {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: #b69886;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

/* Quote styling enhancements */
.inspirational-quote {
    position: relative;
    padding: 2rem 0;
}

.inspirational-quote::before,
.inspirational-quote::after {
    content: '"';
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    color: var(--brand-accent);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.inspirational-quote::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.inspirational-quote::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
}

/* Section spacing and typography */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
}

/* Enhanced typography for journey sections */
.journey-heading {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.journey-text {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Call-to-action enhancements */
.cta-primary {
    background: var(--brand-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover {
    background: #BF9264;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    border: 2px solid var(--brand-accent);
    color: var(--brand-accent);
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-2px);
}