/* Relationship Timeline Styles */

.timeline-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Input Area */
.input-area {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.input-label {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.date-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.date-input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

.generate-btn {
    background: linear-gradient(135deg, var(--accent-purple), #ff6b9d);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6);
}

/* Stats Dashboard */
.stats-dashboard {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    animation: fadeInDown 0.5s ease;
}

.stats-dashboard.hidden {
    display: none;
}

.stats-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-stats-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-stats-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Timeline Visualization */
.timeline {
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline.visible {
    opacity: 1;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold), var(--accent-purple), transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-gold);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background: var(--accent-gold);
}

.timeline-item.future .timeline-dot {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-item.future:hover .timeline-dot {
    background: var(--accent-purple);
}

/* Content Card */
.timeline-content {
    width: 45%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    /* Left side */
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    /* Right side */
    text-align: left;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.milestone-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.milestone-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.timeline-item.future .milestone-title {
    color: var(--accent-purple);
}

.milestone-desc {
    font-size: 0.95rem;
    color: #d0d0d0;
    line-height: 1.5;
}

/* Today Marker */
.timeline-marker-today {
    background: var(--accent-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 5;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
    }
}