/**
 * Pausenplatz Main Styles
 * file: /wp-content/plugins/pausenplatz/css/pausenplatz_styles.css
 */

/* General Styles */
.pausenplatz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pausenplatz-heading {
    color: #3498db;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

/* Game Selection Grid - Enhanced Visual Version */
.pausenplatz-container.pausenplatz-game-selection {
    max-width: 1400px;
}

.pausenplatz-intro {
    text-align: center;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
    line-height: 1.6;
}

.pausenplatz-heading {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.pausenplatz-heading:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: #3498db;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.pausenplatz-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pausenplatz-game-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    transform-origin: center bottom;
}

.pausenplatz-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.pausenplatz-game-preview {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.pausenplatz-game-preview:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 1;
}

.pausenplatz-game-card-header {
    padding: 20px 25px;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 5px solid rgba(0,0,0,0.1);
}

.pausenplatz-game-card-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pausenplatz-game-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.pausenplatz-game-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.pausenplatz-game-description {
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    color: #555;
    font-size: 1.05em;
}

.pausenplatz-game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #666;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
}

.pausenplatz-game-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pausenplatz-game-actions {
    display: flex;
    gap: 12px;
}

/* Difficulty badges with better styling */
.pausenplatz-difficulty {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.pausenplatz-difficulty:before {
    content: "•";
    font-size: 1.2em;
}

.pausenplatz-difficulty-easy {
    background-color: #2ecc71;
}

.pausenplatz-difficulty-medium {
    background-color: #f39c12;
}

.pausenplatz-difficulty-hard {
    background-color: #e74c3c;
}

/* Featured game styling */
.pausenplatz-featured-game {
    position: relative;
    z-index: 1;
}

.pausenplatz-featured-game:before {
    content: "★ Featured";
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f1c40f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 2;
    transform: rotate(10deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Color themes for different games */
.pausenplatz-game-reaction .pausenplatz-game-preview {
    background-image: url('../images/games/reaction-game.jpg');
}

.pausenplatz-game-memory .pausenplatz-game-preview {
    background-image: url('../images/games/memory-game.jpg');
}

.pausenplatz-game-wordscramble .pausenplatz-game-preview {
    background-image: url('../images/games/wordscramble-game.jpg');
}

.pausenplatz-game-quickclick .pausenplatz-game-preview {
    background-image: url('../images/games/quickclick-game.jpg');
}

.pausenplatz-game-numbers .pausenplatz-game-preview {
    background-image: url('../images/games/numbers-game.jpg');
}

/* Buttons with better styling */
.pausenplatz-button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
}

.pausenplatz-button i {
    margin-right: 6px;
}

.pausenplatz-button:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.pausenplatz-button-primary {
    background-color: #2ecc71;
}

.pausenplatz-button-primary:hover {
    background-color: #27ae60;
}

.pausenplatz-button-secondary {
    background-color: #9b59b6;
}

.pausenplatz-button-secondary:hover {
    background-color: #8e44ad;
}

/* Highscores Table */
.pausenplatz-highscores {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pausenplatz-highscores th, 
.pausenplatz-highscores td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pausenplatz-highscores thead th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.pausenplatz-highscores tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pausenplatz-highscores tbody tr:hover {
    background-color: #f1f1f1;
}

/* Modal */
.pausenplatz-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.pausenplatz-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.pausenplatz-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.pausenplatz-modal-close:hover {
    color: #333;
}

.pausenplatz-modal-body {
    margin: 20px 0;
}

.pausenplatz-modal-actions {
    text-align: right;
    margin-top: 20px;
}

/* Challenge notification */
.pausenplatz-challenge-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Challenges List */
.pausenplatz-challenges {
    margin: 20px 0;
}

.pausenplatz-challenge-item {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pausenplatz-challenge-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pausenplatz-challenge-game {
    font-weight: bold;
    color: #3498db;
}

.pausenplatz-challenge-date {
    color: #999;
    font-size: 0.9em;
}

.pausenplatz-challenge-user {
    margin-bottom: 10px;
}

.pausenplatz-challenge-score {
    margin-bottom: 15px;
    font-weight: bold;
}

.pausenplatz-challenge-actions {
    display: flex;
    gap: 10px;
}

/* Challenge tabs */
.pausenplatz-challenge-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.pausenplatz-challenge-tab {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin-right: 5px;
}

.pausenplatz-challenge-tab.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.pausenplatz-challenge-tab-content {
    display: none;
}

.pausenplatz-challenge-tab-content.active {
    display: block;
}

/* Form elements */
.pausenplatz-form-group {
    margin-bottom: 15px;
}

.pausenplatz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.pausenplatz-input,
.pausenplatz-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pausenplatz-textarea {
    resize: vertical;
}

/* Responsive design */
@media (max-width: 768px) {
    .pausenplatz-games-grid {
        grid-template-columns: 1fr;
    }
    
    .pausenplatz-modal-content {
        width: 90%;
        margin: 20% auto;
    }
} 