:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #2ecc71;
    --android-color: #3ddc84;
    --ios-color: #007aff;
    --dev-color: #9b59b6;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
main {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Game Cards */
.game-card, .dev-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover, .dev-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info, .dev-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title, .dev-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.game-description, .dev-description {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Developer Card Specific */
.dev-card {
    border-left: 4px solid var(--dev-color);
}

.dev-icon {
    text-align: center;
    padding: 25px 0 15px;
    background: linear-gradient(135deg, var(--dev-color), #8e44ad);
    color: white;
}

.dev-icon i {
    font-size: 3rem;
}

/* Buttons */
.game-actions, .dev-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.action-btn {
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.play-btn {
    background: linear-gradient(135deg, var(--accent-color), #27ae60);
    color: white;
}

.dev-btn {
    background: linear-gradient(135deg, var(--dev-color), #8e44ad);
    color: white;
}

.download-btns {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
}

.android {
    background: linear-gradient(135deg, var(--android-color), #2bb673);
    color: white;
}

.ios {
    background: linear-gradient(135deg, var(--ios-color), #0062cc);
    color: white;
}

.coming-soon {
    background: #95a5a6 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.coming-soon:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 40px;
    background: var(--primary-color);
    color: white;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .game-image {
        height: 180px;
    }
    
    .modal-content {
        width: 95%;
        height: 85vh;
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    .download-btns {
        flex-direction: column;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    header {
        padding: 20px 0;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1200px) {
    main {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dev-card {
        grid-column: span 1;
    }
}