/* Simple Daily Challenge Styles */

.header {
    position: relative;
}

.header-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    background: white;
    color: #333;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 0.8rem;
}

.nav-btn:hover {
    background: #333;
    color: white;
}

/* Daily date indicator */
.daily-date {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Daily info banner */
.daily-warning {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
}

.daily-warning a {
    color: #333;
    text-decoration: underline;
}

/* Message styling for daily mode */
.message.daily-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.message.daily-success {
    background: #f1f8e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.message.daily-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* Share button styling */
.share-result-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: Georgia, serif;
    cursor: pointer;
}

.share-result-btn:hover {
    background: #555;
}

.share-result-panel {
    width: 100%;
}

.share-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.share-result-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    color: #666;
}

.share-copy-btn {
    min-width: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.share-result-box {
    width: 100%;
    min-height: 68px;
    padding: 10px 12px;
    border: 2px solid #2c2c2c;
    background: #f9f8f6;
    color: #1a1a1a;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 15px;
    line-height: 1.3;
    white-space: pre-wrap;
    overflow: hidden;
    margin: 0;
}

.game-container.completed-state .grid {
    width: min(100%, 360px);
}

.game-container.completed-state .header {
    margin-bottom: 4px;
}

.game-container.completed-state h1 {
    margin-bottom: 4px;
    padding-bottom: 4px;
}

.game-container.completed-state .daily-date {
    margin-top: 2px;
}

.game-container.completed-state .game-layout {
    margin-bottom: 4px;
    padding: 4px 0;
}

.game-container.completed-state .message {
    margin-bottom: 4px;
    padding: 6px 8px;
}

.game-container.completed-state .word-display {
    min-height: 0;
    margin: 2px 0 4px;
}

.game-container.completed-state .grid-container {
    margin-bottom: 6px;
}

.game-container.completed-state .controls {
    gap: 0;
}

.share-result-box:focus {
    outline: none;
    background: #fffdfa;
}

/* Enhanced modal for daily instructions */
.modal .modal-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: normal;
}

/* Responsive adjustments for daily mode */
@media (max-width: 768px) {
    .header-nav {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }

    .daily-warning {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .game-container.completed-state .grid {
        width: min(100%, 320px);
    }

    .game-container.completed-state .header {
        margin-bottom: 2px;
    }

    .game-container.completed-state .game-layout {
        margin-bottom: 2px;
        padding: 2px 0;
    }

    .game-container.completed-state .message {
        margin-bottom: 2px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .game-container.completed-state .word-display {
        margin: 0 0 2px;
    }

    .game-container.completed-state .grid-container {
        margin-bottom: 4px;
    }

    .game-container.completed-state .share-result-box {
        min-height: 58px;
        font-size: 14px;
        line-height: 1.25;
    }
}
