/* Friend Aura - Main Stylesheet
 * Bootstrap 5.3 overrides and custom styles
 * Mobile-first responsive design
 */

/* === BASE STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    color: var(--accent);
}

/* === HEADER & NAVIGATION === */
.navbar {
    background-color: var(--surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border-color: var(--accent);
    color: var(--accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(244, 114, 182, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Picker */
#themePicker {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#themePicker:hover {
    background-color: var(--accent);
    color: #fff;
}

#themePicker:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.3);
}

/* === HERO SECTION === */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--card-shadow);
    margin: 2rem auto;
}

.trust-signal {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.2s ease;
    text-transform: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* App Store Badge Placeholder */
.app-store-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.app-store-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--card-shadow);
    color: #fff;
}

/* === SECTIONS === */
section {
    padding: 4rem 0;
}

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

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === CARDS === */
.card {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--card-shadow);
}

/* Cards in grid layouts should have equal height */
.feature-grid .card,
.row .card.h-100 {
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--card-shadow);
    border-color: var(--accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === FEATURE GRID === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* === HOW IT WORKS === */
.step-card {
    text-align: center;
    margin-bottom: 2rem;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 60px;
    margin-bottom: 1rem;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background-color: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--card-shadow);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonial-author {
    color: var(--text-secondary);
    font-weight: 600;
}

/* === ACCORDION === */
.accordion {
    margin-top: 2rem;
}

.accordion-item {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent);
    color: #fff;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.3);
    border-color: var(--accent);
}

.accordion-body {
    background-color: var(--surface);
    color: var(--text-secondary);
    padding: 1.5rem;
}

/* === FORMS === */
.form-control {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
}

.form-control:focus {
    background-color: var(--surface);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.3);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* === TIMELINE (ROADMAP) === */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--highlight));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: calc(50% + 3rem);
}

.timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 3rem);
    text-align: right;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border: 4px solid var(--surface);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow);
}

.timeline-content ul {
    text-align: left;
}

.timeline-date {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* === FOOTER === */
footer {
    background-color: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p, 
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content strong {
    color: var(--text-primary);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .hero {
        padding: 4rem 0 3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .app-store-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* === UTILITY CLASSES === */
.text-accent {
    color: var(--accent) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

