/* Game-Specific Styles - Snake, Memory, Quiz, Clicker, Wordle, Pong */

/* Snake Game */
#snakeCanvas {
    border: 3px solid #fff;
    border-radius: 15px;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Memory Game */
.difficulty-selector {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover, .difficulty-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.memory-grid {
    display: grid;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    grid-template-columns: repeat(4, 80px);
}

.memory-card {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    border: 2px solid rgba(255,255,255,0.2);
}

.memory-card.flipped {
    transform: rotateY(180deg);
    background: #fff;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.memory-card:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Quiz Game */
.quiz-setup {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-setup h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #4ecdc4;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.setup-option {
    text-align: left;
}

.setup-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
    font-size: 0.9em;
}

.setup-option select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 1em;
    cursor: pointer;
}

.setup-option select:focus {
    outline: 3px solid #4ecdc4;
}

.setup-controls {
    text-align: center;
}

.quiz-question {
    font-size: 1.5em;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    min-height: 120px;
    text-align: center;
}

.question-category {
    font-size: 0.7em;
    color: #4ecdc4;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.question-counter {
    font-size: 0.6em;
    opacity: 0.7;
    color: #ff6b6b;
    font-weight: bold;
}

.quiz-complete {
    text-align: center;
    padding: 20px;
}

.quiz-complete h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.quiz-complete p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.quiz-options {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    transform: translateX(5px);
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    animation: correctPulse 0.6s ease;
}

.quiz-option.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    animation: incorrectShake 0.6s ease;
}

/* Clicker Game */
.clicker-main {
    margin: 30px 0;
}

.clicker-button {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    color: white;
    border: none;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    animation: gradientMove 3s ease infinite;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.clicker-button:hover {
    transform: scale(1.05);
}

.clicker-button:active {
    transform: scale(0.95);
}

.click-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.click-effect.animate {
    animation: clickRipple 0.6s ease-out;
}

.upgrades-section {
    margin: 40px 0;
    text-align: left;
}

.upgrades-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

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

.upgrade-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.upgrade-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.upgrade-card h4 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.upgrade-card p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.upgrade-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
    font-weight: bold;
}

.upgrade-btn:hover {
    transform: scale(1.05);
}

.upgrade-btn:disabled {
    background: rgba(255,255,255,0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

.owned {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: bold;
}

.cooldown {
    font-size: 0.8em;
    color: #ff6b6b;
    font-weight: bold;
}

/* Wordle Game */
.wordle-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.wordle-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 30px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.wordle-cell {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.wordle-cell.filled {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
}

.wordle-cell.correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

.wordle-cell.present {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
}

.wordle-cell.absent {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
}

.wordle-keyboard {
    max-width: 500px;
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.key {
    min-width: 43px;
    height: 58px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 12px;
    color: white;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.key.wide {
    min-width: 65px;
}

.key.correct {
    background: #6aaa64;
    color: white;
}

.key.present {
    background: #c9b458;
    color: white;
}

.key.absent {
    background: #787c7e;
    color: white;
}

.key:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wordle-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0;
    min-height: 30px;
    color: #4ecdc4;
}

.wordle-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Pong Game */
.pong-container {
    margin: 30px 0;
    text-align: center;
}

#pongCanvas {
    border: 3px solid #fff;
    border-radius: 15px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.pong-instructions {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.pong-instructions p {
    margin-bottom: 8px;
    opacity: 0.9;
}