/* ==========================================================================
   Gratissosialtspill.com - Main Stylesheet
   ========================================================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

.lead {
    font-size: 1.125rem;
    font-weight: 300;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #2c3e50;
    border-color: #2c3e50;
}

.btn-outline:hover {
    background-color: #2c3e50;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img {
    height: 48px;
    width: 48px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #34495e;
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #ecf0f1;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #95a5a6;
}

.breadcrumb-item a {
    color: #3498db;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background-color: #e74c3c;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.game-description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-badge.new {
    background-color: #e74c3c;
    color: white;
}

.game-badge.popular {
    background-color: #f39c12;
    color: white;
}

/* Games Filter */
.games-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.games-count {
    color: #7f8c8d;
    font-weight: 500;
}

/* Featured Games Section */
.featured-games,
.games-section {
    padding: 4rem 0;
    background: white;
}

.featured-games h2,
.games-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Main Game Showcase */
.main-game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-hero {
    display: contents;
}

.game-image-large {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}

.game-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-image-large:hover .game-overlay {
    opacity: 1;
}

.play-btn-large {
    background-color: #e74c3c;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

.game-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.game-description {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.game-features {
    margin-bottom: 2rem;
}

.game-features h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    color: #555;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.game-features li:before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Community Intro */
.community-intro {
    padding: 4rem 0;
    background: #f8f9fa;
}

.community-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.community-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.community-content p {
    color: #555;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Community Sections */
.community-intro,
.community-features,
.community-story,
.join-community {
    padding: 4rem 0;
}

.community-intro {
    background: white;
}

.content-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.content-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.community-features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature,
.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
}

.feature:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature h4,
.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature p {
    color: #7f8c8d;
    line-height: 1.7;
    font-size: 1.075rem;
}

.feature-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

.stat {
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Timeline */
.story-timeline {
    margin-top: 3rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.timeline-year {
    background: #3498db;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

/* Join Community */
.join-community {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.join-community h2 {
    color: white;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    text-align: center;
}

.step-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Game Experience Page */
.game-container {
    padding: 2rem 0;
    background: white;
}

.game-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.game-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.game-frame.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-header {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #ddd;
}

.game-info {
    text-align: center;
}

.game-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.game-disclaimer {
    padding: 2rem 0;
    background: #ecf0f1;
}

.disclaimer-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.disclaimer-box ul {
    list-style: disc;
    margin-left: 2rem;
}

.disclaimer-box li {
    margin-bottom: 0.5rem;
}

.related-games {
    padding: 4rem 0;
    background: white;
}

.related-games h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Page Sections */
.about-story,
.about-mission,
.about-team,
.about-principles,
.about-commitment {
    padding: 4rem 0;
}

.about-story {
    background: white;
}

.story-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-text {
    font-size: 1.125rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.story-sections {
    max-width: 900px;
    margin: 0 auto;
}

.story-section {
    margin-bottom: 3rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mission-item {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mission-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-value {
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
}

.commitment-text {
    margin-bottom: 3rem;
}

.commitment-cta {
    text-align: center;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
}

/* Games Info Section */
.games-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* No Games Message */
.no-games {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Disclaimer Section */
.disclaimer {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 3px solid #34495e;
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.disclaimer-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.25rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 1rem;
}

.disclaimer-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.075rem;
}

.disclaimer-content p:first-of-type {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.disclaimer-content p strong {
    color: #e74c3c;
    font-weight: 600;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
    background: white;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    color: #2c3e50;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.legal-text h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-text h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-text ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-notice {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.legal-notice h3 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.cookie-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-table th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

.cookie-controls {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 2rem;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.consent-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.consent-step {
    display: none;
}

.consent-step.active {
    display: block;
}
.consent-step.active h3 {
    color: white;
    margin-bottom: 1rem;
}
.consent-step.active p {
    color: white;
}

.disclaimer .container h2 {
    text-align: center;
}

.consent-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 36px;
    width: 36px;
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-disclaimer {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright,
.footer-age-notice {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Page Content Styling */
.page-content {
    padding: 3rem 0;
    min-height: 400px;
}

.content-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.content-section h3 {
    color: #34495e;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.content-section p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.policy-content {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.highlight-box p {
    color: rgba(255,255,255,0.9);
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:invalid {
    border-color: #e74c3c;
}

.form-control:valid {
    border-color: #27ae60;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input,
.radio-group input {
    width: auto;
    margin: 0;
}

/* Alert Styling */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-primary { color: #3498db; }
.text-secondary { color: #95a5a6; }
.text-success { color: #27ae60; }
.text-warning { color: #f39c12; }
.text-danger { color: #e74c3c; }

.bg-primary { background-color: #3498db; }
.bg-secondary { background-color: #95a5a6; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #2c3e50; }

.border { border: 1px solid #e9ecef; }
.border-top { border-top: 1px solid #e9ecef; }
.border-bottom { border-bottom: 1px solid #e9ecef; }
.border-left { border-left: 1px solid #e9ecef; }
.border-right { border-right: 1px solid #e9ecef; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-menu.active,
    .navbar-menu.show {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-game-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .game-details h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .game-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .games-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-year {
        align-self: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .consent-buttons {
        flex-direction: column;
    }
    
    .game-actions {
        flex-direction: column;
        align-items: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .mission-grid,
    .values-grid,
    .features-grid,
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .main-game-showcase {
        padding: 1.5rem 0.75rem;
        margin: 1rem 0;
        gap: 1.5rem;
    }
    
    .game-details h3 {
        font-size: 1.25rem;
    }
    
    .game-features li {
        font-size: 0.9rem;
    }
    
    .consent-banner {
        padding: 1rem;
    }
    
    .game-frame {
        aspect-ratio: 4/3;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    .consent-banner,
    .footer,
    .btn,
    .game-overlay {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-secondary {
        background-color: #fff;
        border-color: #000;
        color: #000;
    }
}
