/* Custom styles for Secret Guessing Game */
:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --secondary-color: #10B981;
    --secondary-hover: #059669;
    --background-color: #F3F4F6;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
    --truth-color: #3B82F6;
    --dare-color: #EF4444;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Card Styles */
.game-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Player List Styles */
.player-list {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.player-item:last-child {
    border-bottom: none;
}

/* Secret Display Styles */
.secret-display {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

/* Results Styles */
.results-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .game-card {
        padding: 1rem;
    }
    
    .secret-display {
        padding: 1.5rem;
        font-size: 1.3rem;
        width: 95%;
    }
    
    .hub-button, .menu-button {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Error States */
.error-message {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
}

/* Success States */
.success-message {
    background-color: #D1FAE5;
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
}

/* Hub button - always show */
.hub-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s;
}

/* Container styles */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Title styles */
.title-container {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    font-size: 2.5em;
    color: var(--text-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.game-subtitle {
    font-size: 1.2em;
    color: #6b7280;
}

/* Game rules */
.game-rules {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.game-rules h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.3em;
}

.game-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-rules li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

/* Input group styles */
.input-group {
    width: 100%;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 1.1em;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Button styles */
.choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.choice-btn {
    padding: 20px;
    font-size: 1.2em;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.truth-btn {
    background: var(--truth-color);
}

.truth-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.dare-btn {
    background: var(--dare-color);
}

.dare-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.start-button {
    width: 100%;
    margin-top: 0;
}

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.2em;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Player list styles */
.player-list-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.player-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.player-list {
    max-height: 200px;
    overflow-y: auto;
}

.player-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.player-item:hover {
    transform: translateX(5px);
}

.player-status {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* Game container styles */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.game-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Hide player list and other elements in game phases */
/* Target specific components rendered in game phases */
.secret-submission-phase .player-list-container,
.voting-phase .player-list-container,
.results-phase .player-list-container,
.game-over-phase .player-list-container,
.game-container .player-name,
.game-container .choice-buttons {
    display: none;
}

/* Make secret display more prominent */
.secret-display {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .game-container {
        padding: 0;
    }
    
    .game-content {
        padding: 15px;
    }
    
    .secret-display {
        padding: 1.5rem;
        font-size: 1.3rem;
        width: 95%;
    }
    
    .menu-button {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
    }
}

/* Small screen phones */
@media (max-width: 360px) {
    .container {
        margin: 10px;
        padding: 10px;
    }
    
    .game-title {
        font-size: 1.8em;
    }
    
    .form-input {
        padding: 10px;
    }
    
    .start-button, .choice-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    .player-name {
        font-size: 1.5em;
    }
}

/* Room list styles */
.room-list-container {
    margin-top: 30px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.room-list-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}
.room-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.room-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    font-size: 1.1em;
}
.room-code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    background: #f3f4f6;
    color: #3b3b3b;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: all;
    border: 1px solid #e5e7eb;
    margin-left: 4px;
    display: inline-block;
}
.room-code:hover {
    background: #dbeafe;
    color: #2563eb;
}
.room-code.copied {
    background: #bbf7d0;
    color: #059669;
    border-color: #059669;
}
.room-list-item .choice-btn {
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 20px;
}
.room-list-item .choice-btn:hover {
    background: var(--primary-hover);
}

/* End game button */
.end-button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 1.2em;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.end-button:hover, .end-button:active {
    background: #dc2626;
    transform: translateY(-2px) scale(1.03);
}

/* Improved button styles */
.start-button, .choice-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
}
.start-button {
    background: var(--secondary-color);
    color: white;
}
.start-button:hover, .start-button:active {
    background: var(--secondary-hover);
    transform: translateY(-2px) scale(1.03);
}
.choice-btn {
    background: var(--primary-color);
    color: white;
}
.choice-btn:hover, .choice-btn:active {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.03);
}

/* Player carousel for voting */
.player-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 0 20px 0;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f3f4f6;
    justify-content: center;
    align-items: stretch;
}
.player-card {
    min-width: 110px;
    max-width: 140px;
    background: #ede9fe;
    color: #312e81;
    border-radius: 16px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s, background 0.2s, color 0.2s, transform 0.2s;
    margin-bottom: 0;
    height: 70px;
}
.player-card.selected, .player-card:active {
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}
.player-card .player-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.footer-copyright {
    width: 100vw;
    color: #b0b0b0;
    text-align: center;
    font-size: 0.95em;
    margin: 40px 0 10px 0;
    opacity: 0.5;
    background: none;
    box-shadow: none;
    letter-spacing: 0.02em;
}
@media (max-width: 480px) {
    .footer-copyright {
        font-size: 0.85em;
        margin: 24px 0 6px 0;
    }
}

.big-secret {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin: 30px 0 30px 0;
    line-height: 1.3;
    word-break: break-word;
}
@media (max-width: 640px) {
    .big-secret {
        font-size: 1.4em;
        margin: 18px 0 18px 0;
    }
} 