/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-in;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Invitation Grid */
.invitation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Date Card */
.date-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.date-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.date-card:hover::before {
    transform: scaleX(1);
}

.date-card-header {
    margin-bottom: 20px;
}

.date-number {
    font-size: 0.9rem;
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 5px;
}

.date-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.view-details-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
}

.view-details-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-upcoming {
    background: #48dbfb;
    color: white;
}

.status-completed {
    background: #1dd1a1;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

/* Modal Content Styles */
.invitation-detail {
    padding: 40px;
}

.invitation-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.invitation-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 15px;
}

.invitation-date {
    font-size: 1.2rem;
    color: #764ba2;
    font-weight: 600;
}

.invitation-body {
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section p,
.detail-section ul {
    color: #666;
    line-height: 1.8;
    margin-left: 30px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.detail-section li::before {
    content: "•";
    color: #764ba2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Locations Styling */
.locations-container {
    margin-left: 30px;
}

.location-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #764ba2;
}

.location-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.location-address {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.map-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.activities {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #555;
}

.activities-label {
    font-weight: 600;
    color: #764ba2;
    margin-right: 5px;
}

.invitation-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.love-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #764ba2;
    margin-bottom: 20px;
}

.confirm-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.confirm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(238, 90, 111, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .invitation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .invitation-detail {
        padding: 20px;
    }
    
    .invitation-title {
        font-size: 2rem;
    }
}
