* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0c4a6e 0%, #1e3a8a 50%, #7c2d12 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Snowflakes Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 6s;
    animation-delay: 4s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 8s;
    animation-delay: 5s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 6s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 7s;
    animation-delay: 7s;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 9s;
    animation-delay: 8s;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 6s;
    animation-delay: 9s;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.snowflake::before {
    content: "❄";
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5rem;
    color: #fbbf24;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px #fbbf24;
    }
    to {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px #fbbf24, 0 0 40px #fbbf24;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #e5e7eb;
    font-weight: 300;
    margin-bottom: 20px;
}

.tv-link {
    margin-top: 20px;
}

.tv-link-btn {
    display: inline-block;
    background: linear-gradient(45deg, #059669, #047857);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tv-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    background: linear-gradient(45deg, #10b981, #059669);
}

/* Wish Form */
.wish-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Character counter */
.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* Guidelines styling */
.guidelines {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #10b981;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guidelines h4 {
    margin: 0 0 0.5rem 0;
    color: #fbbf24;
    font-size: 1rem;
}

.guidelines ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.guidelines li {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.guidelines li:before {
    content: '';
    margin-right: 0.5rem;
}

.submit-btn {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    align-self: center;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Wishes Container */
.wishes-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wishes-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wishes-list {
    display: grid;
    gap: 20px;
}

.wish-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #fbbf24;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

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

.wish-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.wish-name {
    font-weight: 600;
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.wish-text {
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 10px;
}

.wish-timestamp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #059669, #047857);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.hidden {
    transform: translateX(400px);
}

/* Loading Animation */
.loading {
    text-align: center;
    color: #fbbf24;
    font-size: 1.2rem;
    padding: 40px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .wishes-title {
        font-size: 2rem;
    }
    
    .wish-form-container,
    .wishes-container {
        padding: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hidden {
        transform: translateY(-100px);
    }
}
