/* Is It Friday - Calendar Style */

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

body {
    background: #f5f5f5;
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #333;
    padding: 20px;
    transition: background 0.5s;
}

/* Different backgrounds for Friday/Not Friday */
body.is-friday {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.not-friday {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 5px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Header */
.header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 0;
    border-bottom: 5px solid #555;
}

.logo {
    background: #000;
    padding: 25px;
    border-bottom: 3px solid #555;
}

.logo-text {
    font-size: 3.5em;
    font-weight: bold;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #f7b731);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tagline {
    background: #444;
    padding: 12px;
    font-size: 1.2em;
    border-bottom: 2px solid #555;
}

.header-marquee {
    background: #222;
    color: #4ecdc4;
    padding: 10px;
    font-size: 1em;
    border-bottom: 2px solid #000;
}

/* Main Answer */
.answer-section {
    padding: 50px 20px;
    text-align: center;
}

.answer-box {
    background: #f9f9f9;
    border: 8px double #333;
    padding: 40px;
    margin: 0 auto;
    max-width: 600px;
}

.answer-text {
    font-size: 8em;
    font-weight: bold;
    font-family: 'Impact', 'Arial Black', sans-serif;
    margin-bottom: 20px;
    text-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.yes {
    color: #2ecc71;
    animation: yes-pulse 1s ease-in-out infinite;
}

@keyframes yes-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.no {
    color: #e74c3c;
}

.answer-subtitle {
    font-size: 1.8em;
    color: #555;
    font-weight: bold;
}

/* Day Info */
.day-info {
    margin: 40px 20px;
    background: #f0f0f0;
    border: 4px solid #333;
    padding: 25px;
}

.day-info h2 {
    background: #333;
    color: #fff;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    text-align: center;
    font-size: 1.6em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background: #fff;
    border: 3px solid #333;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    font-family: 'Courier New', monospace;
}

.text-yes {
    color: #2ecc71 !important;
}

.text-no {
    color: #e74c3c !important;
}

/* Week Progress */
.week-progress {
    margin: 40px 20px;
    background: #fff;
    border: 4px solid #333;
    padding: 25px;
}

.week-progress h2 {
    background: #333;
    color: #fff;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    text-align: center;
    font-size: 1.6em;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    background: #ddd;
    border: 3px solid #333;
    height: 50px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    transition: width 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    text-shadow: 2px 2px #000;
}

.progress-label {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.day-box {
    background: #f0f0f0;
    border: 3px solid #999;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s;
}

.day-box.passed {
    background: #d4edda;
    border-color: #2ecc71;
}

.day-box.current {
    background: #fff3cd;
    border-color: #ffc107;
    border-width: 4px;
    transform: scale(1.05);
}

.day-box.friday {
    background: #d1ecf1;
    border-color: #17a2b8;
}

.day-box.current.friday {
    background: #d4edda;
    border-color: #2ecc71;
    animation: friday-glow 1s ease-in-out infinite;
}

@keyframes friday-glow {
    0%, 100% { box-shadow: 0 0 10px #2ecc71; }
    50% { box-shadow: 0 0 25px #2ecc71; }
}

.day-name {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.day-status {
    font-size: 1.2em;
    min-height: 20px;
}

/* Statistics */
.statistics {
    margin: 40px 20px;
    background: #333;
    border: 4px solid #000;
    padding: 25px;
}

.statistics h2 {
    background: #000;
    color: #fff;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    text-align: center;
    font-size: 1.6em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: #fff;
    border: 4px solid #555;
    padding: 25px 5px;
    text-align: center;
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #3498db;
    font-family: 'Impact', sans-serif;
    margin-bottom: 10px;
}

.stat-label {
    color: #555;
    font-size: 1em;
    font-weight: bold;
}

/* Historical Section */
.historical-section {
    margin: 40px 20px;
    background: #f9f9f9;
    border: 4px solid #333;
    padding: 25px;
}

.historical-section h2 {
    background: #333;
    color: #fff;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    text-align: center;
    font-size: 1.6em;
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.historical-table th {
    background: #555;
    color: #fff;
    padding: 12px;
    border: 2px solid #333;
    font-size: 1.1em;
}

.historical-table td {
    padding: 12px;
    border: 2px solid #ddd;
    text-align: center;
}

.historical-table tr:hover {
    background: #f0f0f0;
}

/* How It Works */
.how-it-works {
    margin: 40px 20px;
    background: #e8f4f8;
    border: 4px solid #333;
    padding: 25px;
}

.how-it-works h2 {
    background: #333;
    color: #fff;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    text-align: center;
    font-size: 1.6em;
}

.works-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.works-content h3 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.3em;
}

.works-content ol {
    margin-left: 25px;
}

.works-content li {
    margin: 8px 0;
}

.blink {
    color: #e74c3c;
    font-weight: bold;
    animation: blink-animation 1s step-start infinite;
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: #222;
    color: #aaa;
    padding: 25px;
    text-align: center;
    border-top: 5px solid #000;
}

.footer p {
    margin: 8px 0;
}

.refresh-note {
    color: #4ecdc4;
    font-weight: bold;
    margin-top: 15px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        border-width: 2px;
    }

    .logo-text {
        font-size: 2em;
        letter-spacing: 2px;
    }

    .answer-text {
        font-size: 5em;
    }

    .answer-subtitle {
        font-size: 1.3em;
    }

    .days-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }

    .day-name {
        font-size: 0.7em;
    }

    .day-status {
        font-size: 1em;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .answer-text {
        font-size: 3.5em;
    }

    .stat-number {
        font-size: 2em;
    }

    .day-name {
        font-size: 0.6em;
    }
}
