/* Reset og grundlæggende styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mozilla Headline', sans-serif;
}

body {
    font-family: 'Mozilla Headline', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.header-nav .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-logo {
  width: 440px;
  margin-left: -15px;
  max-width: 100%;
  object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.search-container {
    display: flex;
    flex: 1;
    max-width: 400px;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
}

#search-btn {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background: #5a6fd8;
}





.random-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.random-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Override random-btn hover for hero buttons to maintain consistency */
.hero-btn.random-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.main {
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.filters-section h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.clear-filters-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.clear-filters-btn:hover {
    background: #c53030;
}

/* Game Gallery */
.game-gallery-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
}

.results-info {
    color: #718096;
    font-size: 0.9rem;
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.game-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
    margin-right: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-description {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}




/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close {
    color: #666;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.close i {
    font-size: 16px;
    font-weight: 600;
}

.close:hover {
    color: #e53e3e;
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Game Detail Modal */
.game-detail {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.game-detail::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.game-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.game-detail-image {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.game-detail-info h1 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.game-detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-detail-tag {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-detail-section {
    margin-bottom: 2rem;
}

.game-detail-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.game-detail-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.game-rules {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.game-rules strong {
    color: #2d3748;
    font-weight: 600;
}

.game-rules br {
    margin-bottom: 0.5rem;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-detail-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.game-detail-item strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

.game-detail-item span {
    color: #718096;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.video-link:hover {
    background: #5a6fd8;
}

/* Stikord styling */
.game-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.keyword-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Privacy Policy Page */
.privacy-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #718096;
    font-style: italic;
    margin-bottom: 3rem;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.privacy-section h3 {
    color: #4a5568;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.privacy-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.privacy-section strong {
    color: #2d3748;
    font-weight: 600;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}



/* Screen reader only text */
.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;
}



/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
}

.hero-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: left;
    gap: 1rem;
    margin-top: 5em;
}

.hero-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}


.hero-btn i {
    font-size: 1.1rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: #cbd5e0;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #718096;
    font-weight: 500;
}

/* Article styling for privacy policy */
.privacy-content article {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Enhanced accessibility for interactive elements */
button[aria-label],
input[aria-label] {
    cursor: pointer;
}

/* Improved focus indicators */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link (hidden by default, shown on focus) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced modal accessibility */
.modal[aria-hidden="true"] {
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

/* Improved list accessibility */
.game-gallery[role="list"] > * {
    list-style: none;
}

/* Status messages */
[role="status"] {
    position: relative;
}

[aria-live="polite"] {
    position: relative;
}

[aria-live="assertive"] {
    position: relative;
}

/* 404 Error Page */
.error-section {
    text-align: center;
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Center the header content on 404 page */
.header-404-content {
    justify-content: center;
}

.error-content h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.home-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.error-links {
    margin-top: 1rem;
}

.error-links a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.error-links a:hover {
    color: #667eea;
}

.header-logo {
    width: 400px;
    height: auto;
    padding-left: px;
}

/* Enhanced Favorite Button Styling */
.favorite-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #cbd5e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    border-color: #ec4899;
    color: #ec4899;
    transform: scale(1.1);
}

.favorite-btn:active {
    transform: scale(0.95);
}

.favorite-btn:focus {
    outline: none;
}

.favorite-btn.favorited:hover {
    background: #db2777;
    border-color: #db2777;
}
.favorite-btn.favorited {
    background: #ec4899;
    border-color: #ec4899;
    color: white;
}

.favorite-btn i {
    font-size: 1.1rem;
}

/* About page styles */
.about-page {
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Ensure logo size consistency on about page */
.about-page .header-logo {
    width: 50px;
    height: 50px;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.content-section strong {
    color: #2d3748;
    font-weight: 600;
}


.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.category p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff; /* Changed text color to a yellow shade */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    outline: none;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: #ffffff; /* Lighter yellow on hover/focus */
}

/* Navigation styles for about page */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive 1000px */
@media (max-width: 1000px) {
    .header-content {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .logo {
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
    }
    .filters-about-wrapper {
        flex-direction: column;
        gap: 3rem;  
    }
    .filters-panel,
    .about-panel {
        width: 100%;
        padding: 0rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
  }

/* Responsive 768px */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .header-nav {
        order: 2;
        margin: 0.5rem 0;
    }
    
    .header-nav .nav-menu {
        gap: 1rem;
    }
    
    .header-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .logo {
        flex-direction: column;
        align-items: center;
    }
    
    
    .header-logo {
        width: 300px;
        padding-left: 20px;
        height: 70px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    #search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    #search-btn {
        width: 28px;
        height: 28px;
        right: 0.15rem;
    }
    
    
    .random-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .game-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .game-detail-header {
        flex-direction: column;
    }
    
    .game-detail-image {
        width: 100%;
        height: 200px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .close {
        right: 10px;
        top: 10px;
        width: 32px;
        height: 32px;
    }
    
    .close i {
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .game-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    .favorite-btn {
        width: 36px;
        height: 36px;
    }
    
    .favorite-btn i {
        font-size: 1rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    .about-content p {
        font-size: 0.9rem !important;
    }
}

/* Responsive 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .filters-section,
    .game-gallery-section {
        padding: 1.5rem;
    }
    
    .game-card {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-header {
        align-items: center;
    }
    
    .game-title {
        font-size: 1.1rem;
        margin-right: 0.25rem;
    }
    
    .favorite-btn {
        font-size: 1.2rem;
        padding: 0.6rem;
        border-radius: 14px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    /* Enhanced touch interaction for mobile */
    .favorite-btn:active {
        transform: translateY(-1px) scale(0.94) !important;
        transition: all 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .favorite-btn:hover {
        transform: translateY(-2px) scale(1.06) rotate(1deg) !important;
    }
    
    .favorite-btn.favorited {
        animation: favoriteHeartbeat 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    /* Adjust tooltips for mobile */
    .favorite-btn[title]:hover::after {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .favorite-btn[title]:hover::before {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(0, 0, 0, 0.95);
        margin-bottom: 0.15rem;
    }
    
    .header-logo {
        width: 300px;
        height: 60px;
    }
    
    .header-nav .nav-menu {
        gap: 0.5rem;
    }
    
    .header-nav .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .hero-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    .error-content h1 {
        font-size: 2rem;
    }
    .error-description {
        font-size: 1rem;
    }
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    .favorite-btn {
        width: 32px;
        height: 32px;
    }
    
    .favorite-btn i {
        font-size: 0.9rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    /* Responsive styles for about section */
    .about-section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    
    /* Responsive styles for filters-about wrapper */
    .filters-about-wrapper {
        flex-direction: column;
        gap: 3rem;
        
    }
    
    .filters-panel,
    .about-panel {
        padding: 0rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .hero-description {
        font-size: 0.9rem;
    }
}
/* About Section */
.about-section {
    padding: 4rem 0;
    padding-top: 50px;
    background: #fff;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-about-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}




.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Skeleton Loading Styles */
.skeleton-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    opacity: 0.7;
    pointer-events: none;
}

.skeleton-image {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3rem;
}

.skeleton-title {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    height: 24px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-description {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 6px;
    width: 100%;
}

.skeleton-description:last-of-type {
    width: 70%;
}

.skeleton-favorite {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-tag {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    height: 24px;
    border-radius: 12px;
    width: 60px;
    margin-right: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hide skeleton cards when content is loaded */
.game-gallery.loaded .skeleton-card {
    display: none;
}


