/* CSS Variables for easy theming */
:root {
    --bg-main: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --accent-color: #f3c300;
    --accent-hover: #d4a800;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Header */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-login:hover {
    background-color: rgba(243, 195, 0, 0.1);
}

.btn-register, .btn-submit {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: #000;
}

.btn-register:hover, .btn-submit:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Hero Slider */

.hero-slider-section {
    margin-bottom: 2rem;
}

.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* 3 slides */
}

.slide-img {
    width: 33.333%;
    object-fit: cover;
    aspect-ratio: 16/5;
}

@media (max-width: 768px) {
    .slide-img {
        aspect-ratio: 16/9;
    }
}

/* Games Section */
.games-section {
    margin-bottom: 3rem;
}

.game-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.category-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.category-header h2 {
    font-size: 1.25rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.game-card {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--bg-tertiary);
}

.game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(243, 195, 0, 0.2);
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.9);
    color: var(--accent-color);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(243, 195, 0, 0.3);
}

.game-card:hover .game-title {
    transform: translateY(0);
}

/* SEO Content */
.seo-content {
    margin-bottom: 3rem;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.seo-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.seo-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2e2e2e;
}

.seo-content table thead tr {
    background: linear-gradient(90deg, #1c1a00, #1f1c00);
    border-bottom: 2px solid var(--accent-color);
}

.seo-content table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.seo-content table tbody tr {
    border-bottom: 1px solid #222;
    transition: background 0.15s ease;
}

.seo-content table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.seo-content table tbody tr:hover {
    background: rgba(243, 195, 0, 0.06);
}

.seo-content table tbody td {
    padding: 0.72rem 1rem;
    color: var(--text-muted);
    vertical-align: middle;
    line-height: 1.5;
}

.seo-content table tbody td:first-child {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: border-color 0.15s;
}

.seo-content table tbody tr:hover td:first-child {
    border-left-color: var(--accent-color);
    color: var(--accent-color);
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.seo-content ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: border-color 0.15s, background 0.15s;
}

.seo-content ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

.seo-content ul li:hover {
    border-color: rgba(243, 195, 0, 0.3);
    background: rgba(243, 195, 0, 0.04);
    color: var(--text-main);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent-color);
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer p {
    padding-bottom: 1rem;
    color: var(--text-muted);
}

/* Comments Section */
.comments-section {
    margin-bottom: 3rem;
}

.comments-inner {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.comments-inner h2 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.comments-inner > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 4px;
    text-align: center;
}

/* Footer */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.copyright {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.responsible-gaming {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.responsible-gaming h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.responsible-gaming p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.rg-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

/* CSS Sprites setup for footer icons */
.icon {
    background-image: url('footer-sprites.webp');
    background-size: cover; /* Adjust based on actual sprite generation */
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon:hover {
    opacity: 1;
}

.icon-yesilay {
    width: 40px;
    height: 40px;
    background-position: 0 0;
}

.icon-aware {
    width: 40px;
    height: 40px;
    background-position: 33.33% 0;
}

.icon-18plus {
    width: 40px;
    height: 40px;
    background-position: 66.66% 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .responsible-gaming {
        text-align: center;
    }
    
    .rg-links {
        justify-content: center;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* AI-Skeleton */
img { background: #e9ecef; min-height: 50px; }