/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

/* Header */
.header {
    width: 100%;
    background: white;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    height: 80px;
    width: auto;
}

/* Main content */
.main-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Headline section */
.headline-section {
    text-align: center;
    margin-bottom: 32px;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
}

.discount-text {
    color: #dc2626;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .discount-text {
        font-size: 1.875rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.subtitle {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.hero-image {
    width: 100%;
    max-width: 512px;
    margin: 0 auto 24px;
    display: block;
}

.description-text {
    text-align: left;
    max-width: 768px;
    margin: 0 auto;
}

.description-text p {
    margin-bottom: 16px;
}

.warning-box {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
}

.warning-box p {
    font-size: 0.875rem;
    margin: 0;
}

/* Product showcase */
.product-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.product-image {
    max-width: 100%;
    height: auto;
    max-height: 256px;
    object-fit: contain;
}

/* Survey section */
.survey-section {
    max-width: 512px;
    margin: 0 auto;
}

.survey-intro p {
    margin-bottom: 16px;
}

.urgency-text {
    color: #dc2626;
    font-weight: bold;
    margin-bottom: 24px;
}

.question-container {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.question-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-button {
    width: 100%;
    text-align: left;
    padding: 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option-button:hover {
    background-color: #f3f4f6;
}

/* Checking section */
.checking-section {
    text-align: center;
    max-width: 512px;
    margin: 0 auto;
}

.checking-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.loading-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.checking-results {
    text-align: left;
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}

.checking-results p {
    margin-bottom: 8px;
}

.checking-results p:last-child {
    margin-bottom: 0;
}

/* Boxes section */
.boxes-section {
    text-align: center;
    max-width: 512px;
    margin: 0 auto;
}

.boxes-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.date-text {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.try-luck-text {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 16px 0;
}

.attempts-text {
    margin-bottom: 24px;
}

.gift-boxes {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.gift-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom, #fbbf24, #d97706);
    border: 2px solid #b45309;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.gift-box:hover {
    background: linear-gradient(to bottom, #fcd34d, #f59e0b);
}

.gift-box.selected {
    animation: pulse 1s infinite;
}

.gift-box:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.empty-box-message {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.empty-box-message h3 {
    font-weight: bold;
    margin-bottom: 8px;
}

.empty-box-message button {
    margin-top: 8px;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Win section */
.win-section {
    text-align: center;
    max-width: 512px;
    margin: 0 auto;
}

.win-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 16px;
}

.win-subtitle {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.win-product-image {
    width: 100%;
    max-width: 384px;
    margin: 0 auto 24px;
    border-radius: 8px;
}

.rules-container {
    text-align: left;
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.rules-title {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.rules-list {
    padding-left: 0;
    list-style: none;
}

.rules-list li {
    margin-bottom: 8px;
}

.apply-button {
    background-color: #16a34a;
    color: white;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-button:hover {
    background-color: #15803d;
}

/* Comments section */
.comments-section {
    margin-top: 64px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.commenter-name {
    font-weight: bold;
    font-size: 0.875rem;
}

.comment-text {
    font-size: 0.875rem;
    margin-bottom: 8px;
    margin-left: 52px;
}

.comment-footer {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 52px;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        padding: 16px 8px;
    }
    
    .gift-boxes {
        gap: 16px;
    }
    
    .gift-box {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}