/* AnniversaryCalculator.css - Calculator-specific styles only */
/* DO NOT redefine global classes: .glass-card, .form-input, .btn-custom, .btn-sponsor */
/* Reference: GLOBAL_CSS_CLASSES.md */

/* ========================================
   Result Display Styles
   ======================================== */

.anniversary-main-result {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}

.anniversary-days-count {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.anniversary-days-label {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 5px;
    font-weight: 500;
}

.anniversary-duration {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 10px;
}

/* ========================================
   Next Milestone Display
   ======================================== */

.anniversary-next-milestone {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #48bb78;
}

.anniversary-next-milestone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.anniversary-next-milestone-icon {
    font-size: 1.5rem;
}

.anniversary-next-milestone-title {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anniversary-next-milestone-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.anniversary-next-milestone-date {
    font-size: 1rem;
    color: #48bb78;
    font-weight: 500;
}

.anniversary-next-milestone-countdown {
    font-size: 0.95rem;
    color: #f59e0b;
    margin-top: 5px;
    font-weight: 500;
}

/* ========================================
   Milestone List Styles
   ======================================== */

.anniversary-milestone-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.anniversary-milestone-list::-webkit-scrollbar {
    width: 6px;
}

.anniversary-milestone-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.anniversary-milestone-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.anniversary-milestone-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.anniversary-milestone-item:hover {
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.2);
}

.anniversary-milestone-item.passed {
    background: rgba(72, 187, 120, 0.08);
}

.anniversary-milestone-item.upcoming {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
}

.anniversary-milestone-item.future {
    background: rgba(100, 116, 139, 0.05);
}

.anniversary-milestone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.anniversary-milestone-item.passed .anniversary-milestone-icon {
    background: rgba(72, 187, 120, 0.15);
}

.anniversary-milestone-item.upcoming .anniversary-milestone-icon {
    background: rgba(102, 126, 234, 0.2);
}

.anniversary-milestone-item.future .anniversary-milestone-icon {
    background: rgba(100, 116, 139, 0.1);
}

.anniversary-milestone-content {
    flex: 1;
    min-width: 0;
}

.anniversary-milestone-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 2px;
}

.anniversary-milestone-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.anniversary-milestone-status {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

.anniversary-milestone-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
}

.anniversary-milestone-countdown {
    font-size: 0.8rem;
    color: #64748b;
}

.anniversary-milestone-item.passed .anniversary-milestone-countdown {
    color: #48bb78;
}

.anniversary-milestone-item.upcoming .anniversary-milestone-countdown {
    color: #f59e0b;
    font-weight: 600;
}

/* ========================================
   Share Card Styles
   ======================================== */

.anniversary-share-card-container {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f5d0fe 100%);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.anniversary-share-card-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20%, 20%); }
}

.anniversary-share-card-header {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: #be185d;
    margin-bottom: 15px;
    font-weight: 500;
}

.anniversary-share-card-days {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 10px 40px rgba(190, 24, 93, 0.2);
}

.anniversary-share-card-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.anniversary-share-card-unit {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.anniversary-share-card-start {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: #9d174d;
    margin: 15px 0;
}

.anniversary-share-card-next {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.anniversary-share-card-next-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.anniversary-share-card-next-milestone {
    font-size: 1.1rem;
    font-weight: 600;
    color: #be185d;
}

.anniversary-share-card-next-countdown {
    font-size: 0.9rem;
    color: #f59e0b;
    margin-top: 3px;
}

.anniversary-share-card-footer {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: #9d174d;
    margin-top: 20px;
    opacity: 0.7;
}

/* Hearts decoration */
.anniversary-hearts {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
    z-index: 0;
}

/* ========================================
   Custom Milestone Form
   ======================================== */

.anniversary-custom-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.anniversary-custom-input-group {
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 100%;
}

.anniversary-custom-input-group .form-input {
    max-width: 100%;
}

.anniversary-custom-form .btn {
    flex-shrink: 0;
    white-space: nowrap;
    height: 42px;
}

.anniversary-custom-input-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* ========================================
   View More Button
   ======================================== */

.anniversary-view-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: transparent;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anniversary-view-more-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #667eea;
}

/* ========================================
   Share Card Buttons
   ======================================== */

.anniversary-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.anniversary-share-buttons .btn {
    flex: 1;
}

/* ========================================
   Error State
   ======================================== */

.anniversary-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #dc2626;
    text-align: center;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .anniversary-days-count {
        font-size: 3rem;
    }

    .anniversary-days-label {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .anniversary-main-result {
        padding: 20px 15px;
    }

    .anniversary-days-count {
        font-size: 2.5rem;
    }

    .anniversary-days-label {
        font-size: 1rem;
    }

    .anniversary-share-card-number {
        font-size: 2.5rem;
    }

    .anniversary-share-buttons {
        flex-direction: column;
    }

    .anniversary-custom-form {
        flex-direction: column;
    }

    .anniversary-custom-input-group {
        width: 100%;
    }

    .anniversary-milestone-item {
        padding: 10px 12px;
    }

    .anniversary-milestone-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
}

/* ========================================
   Input Label Styles (calculator-specific)
   ======================================== */

.anniversary-input-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.anniversary-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.anniversary-tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
}

/* ========================================
   Animation for CountUp
   ======================================== */

.anniversary-countup-animation {
    animation: countupPulse 0.5s ease-out;
}

@keyframes countupPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
