* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Countdown Timer Styles */
.countdown-container {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.countdown-timer {
    max-width: 600px;
    margin: 0 auto;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-block {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.time-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Grid Container Styles */
.grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Read box spans all 3 columns */
.read-box {
    grid-column: 1 / -1;
    border-color: #4CAF50 !important;
}

.grid-box {
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #E91E63;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-box:nth-child(even) {
    border-color: #4CAF50;
}

.grid-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.box-content {
    text-align: center;
    color: #333;
}

.box-number {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #666;
}

.box-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* Widget Overlay Styles */
.widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.widget-overlay.active {
    display: flex;
}

.widget-container {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.widget-content {
    padding: 60px 30px 30px 30px;
    min-height: 200px;
}

.widget-content h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Cake Gallery Styles */
.cake-button {
    transition: all 0.3s ease;
}

.cake-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cake-button:active {
    transform: translateY(0);
}

#cake-display img {
    transition: all 0.3s ease;
    object-fit: contain !important;
}

#cake-display:hover img {
    transform: scale(1.02);
}

/* Spotify Gallery Styles */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Fullscreen Image Overlay */
.fullscreen-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.fullscreen-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #E91E63;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    transition: all 0.3s ease;
}

.fullscreen-close-btn:hover {
    background: #c2185b;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-container {
        padding: 20px 15px;
    }
    
    .countdown-display {
        gap: 15px;
    }
    
    .time-block {
        padding: 15px;
        min-width: 70px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 20px;
    }
    
    .grid-box {
        min-height: 120px;
    }
    
    .box-number {
        font-size: 2rem;
    }
    
    .box-text {
        font-size: 1rem;
    }
    
    .widget-content {
        padding: 50px 20px 20px 20px;
    }
    
    #cake-display {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 15px 10px;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .time-block {
        padding: 12px;
        min-width: 60px;
    }
    
    .time-value {
        font-size: 1.8rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 15px;
        padding: 15px;
    }
    
    .read-box {
        grid-column: 1;
    }
    
    .grid-box {
        min-height: 100px;
    }
    
    .box-number {
        font-size: 1.8rem;
    }
    
    .widget-content {
        padding: 45px 15px 15px 15px;
    }
    
    #cake-display {
        height: 180px !important;
    }
}

/* Animations */
@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Fullscreen Countdown Styles */
.fullscreen-countdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f0f0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.fullscreen-timer {
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.fullscreen-title {
    margin-bottom: 60px;
}

.fullscreen-title h1 {
    font-size: 3rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 300;
    letter-spacing: 2px;
}

.fullscreen-title p {
    font-size: 1.5rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.fullscreen-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fullscreen-time-block {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #E91E63;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.fullscreen-time-block:nth-child(even) {
    border-color: #4CAF50;
}

.fullscreen-time-block:hover {
    transform: translateY(-5px);
}

.fullscreen-time-value {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1;
}

.fullscreen-time-label {
    font-size: 1.2rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Honey Button Styles */
.honey-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.honey-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.honey-button:active {
    transform: scale(1.05) translateY(-1px);
}

/* Responsive Design for Fullscreen */
@media (max-width: 768px) {
    .fullscreen-title h1 {
        font-size: 2rem;
    }
    
    .fullscreen-title p {
        font-size: 1.2rem;
    }
    
    .fullscreen-display {
        gap: 20px;
    }
    
    .fullscreen-time-block {
        padding: 25px 20px;
        min-width: 80px;
    }
    
    .fullscreen-time-value {
        font-size: 2.5rem;
    }
    
    .fullscreen-time-label {
        font-size: 1rem;
    }
    
    .honey-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .fullscreen-title {
        margin-bottom: 40px;
    }
    
    .fullscreen-title h1 {
        font-size: 1.5rem;
    }
    
    .fullscreen-title p {
        font-size: 1rem;
    }
    
    .fullscreen-display {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 15px;
        display: grid;
    }
    
    .fullscreen-time-block {
        padding: 20px 15px;
        min-width: 70px;
    }
    
    .fullscreen-time-value {
        font-size: 2rem;
    }
    
    .fullscreen-time-label {
        font-size: 0.9rem;
    }
    
    .honey-button {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
} 