/**
 * TryToWon Puzzle Games - WordPress Plugin Styles
 * Primary Brand Color: #bf1362
 */

:root {
    --trytowon-primary: #bf1362;
    --trytowon-primary-hover: #a01054;
    --trytowon-primary-light: rgba(191, 19, 98, 0.1);
    --trytowon-border: #e5e7eb;
    --trytowon-text: #1f2937;
    --trytowon-text-muted: #6b7280;
    --trytowon-bg-card: #ffffff;
}

/* Game Container */
.trytowon-game-container {
    margin: 2rem 0;
    max-width: 100%;
}

.trytowon-game-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.trytowon-game-header h2 {
    color: var(--trytowon-primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.trytowon-game-header p {
    color: var(--trytowon-text-muted);
    font-size: 1rem;
}

/* Game Frame */
.trytowon-game-frame {
    background: var(--trytowon-primary-light);
    border: 2px solid var(--trytowon-primary);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.trytowon-game-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.trytowon-game-link:hover {
    transform: scale(1.05);
}

.trytowon-game-icon {
    font-size: 5rem;
    line-height: 1;
}

.trytowon-game-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--trytowon-text);
}

.trytowon-play-button {
    background: var(--trytowon-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background 0.2s;
}

.trytowon-play-button:hover {
    background: var(--trytowon-primary-hover);
}

/* Category Container */
.trytowon-category-container,
.trytowon-all-games-container {
    margin: 2rem 0;
}

.trytowon-section-title {
    color: var(--trytowon-primary);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

/* Games Grid */
.trytowon-games-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trytowon-games-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.trytowon-games-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.trytowon-games-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .trytowon-games-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Game Card */
.trytowon-game-card {
    background: var(--trytowon-bg-card);
    border: 2px solid var(--trytowon-primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trytowon-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(191, 19, 98, 0.15);
}

.trytowon-game-card-icon {
    font-size: 3rem;
    line-height: 1;
}

.trytowon-game-card-title {
    color: var(--trytowon-text);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.trytowon-game-card-description {
    color: var(--trytowon-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.trytowon-game-card-category {
    display: inline-block;
    background: var(--trytowon-primary-light);
    color: var(--trytowon-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trytowon-game-card-button {
    background: var(--trytowon-primary);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: background 0.2s;
}

.trytowon-game-card-button:hover {
    background: var(--trytowon-primary-hover);
    color: white;
}

/* Responsive Design */
@media (max-width: 640px) {
    .trytowon-game-header h2 {
        font-size: 1.5rem;
    }
    
    .trytowon-game-icon {
        font-size: 4rem;
    }
    
    .trytowon-section-title {
        font-size: 1.5rem;
    }
}
