/* ==========================================================================
   CricketFlag - Main Stylesheet
   ========================================================================== */

/* CSS Variables - Clean White Professional Theme */
:root {
    --primary-color: #2c5530;
    --primary-dark: #1e3d22;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --danger-color: #c0392b;
    --text-color: #222222;
    --text-light: #555555;
    --text-muted: #888888;
    --bg-color: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #2c5530;
    --border-color: #eeeeee;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --radius-lg: 10px;
    --max-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
}

.btn-download:hover {
    background-color: #388e3c;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), #4a8b4f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(180deg, #2c5530 0%, #1e3d22 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-text {
    font-size: 1.1rem;
    color: #ffeb3b;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Search Form */
.hero-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    gap: 10px;
}

.hero-search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.3s ease;
}

.hero-search-input:focus {
    border-color: var(--primary-color);
}

.hero-search-form .btn {
    padding: 14px 28px;
    white-space: nowrap;
}

/* Page Search Form (for Flags/Players pages) */
.page-search-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto 30px;
    gap: 10px;
}

.page-search-form .search-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.3s ease;
}

.page-search-form .search-input:focus {
    border-color: var(--primary-color);
}

.page-search-form .btn {
    padding: 12px 24px;
    white-space: nowrap;
}

/* ==========================================================================
   Search Page Styles
   ========================================================================== */
.search-page {
    padding: 20px 0;
}

.search-page h1 {
    margin-bottom: 25px;
    text-align: center;
}

.search-form-large {
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.results-info {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.result-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-info {
    padding: 15px;
}

.result-type {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 8px;
}

.type-player {
    background-color: #e3f2fd;
    color: #1565c0;
}

.type-flag {
    background-color: #fff3e0;
    color: #e65100;
}

.type-item {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.result-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.result-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.search-suggestions {
    text-align: center;
    padding: 40px 0;
}

.search-suggestions h2 {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.suggestion-tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    padding: 40px 0 60px;
    min-height: calc(100vh - var(--header-height) - 300px);
    background-color: #ffffff;
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 0 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Sections */
.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.view-all {
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #4caf50, var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 85, 48, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.15);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.25);
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-card h3,
.category-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.category-card p {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 22px;
    line-height: 1.6;
    flex-grow: 1;
}

.player-count {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.25);
}

.category-card .btn {
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.25);
}

.category-card:hover .btn {
    background: linear-gradient(135deg, var(--primary-dark), #1a2e1d);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.35);
}

.category-cards.large .category-card {
    padding: 50px 35px;
}

/* ==========================================================================
   Folder Grid (Square Cards)
   ========================================================================== */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px;
    cursor: pointer;
}

.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.folder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.folder-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

.folder-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Section with Folders Display */
.section-with-folders {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.section-with-folders h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-with-folders h2 a {
    color: var(--primary-color);
}

.section-with-folders h2 a:hover {
    text-decoration: underline;
}

.section-with-folders .section-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.section-with-folders .no-folders {
    color: var(--text-muted);
    font-style: italic;
    margin: 15px 0;
}

/* Section Folders Display in Category Page */
.section-folders-display {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.section-folders-display h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.section-folders-display .folder-grid {
    margin: 0;
}

/* ==========================================================================
   Player & Flag Grids
   ========================================================================== */
.player-grid,
.flag-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
}

.player-card,
.flag-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.player-card:hover,
.flag-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.player-image,
.flag-image {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.player-image {
    padding-top: 100%;
}

.flag-image {
    padding-top: 60%;
}

.player-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.flag-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.player-card:hover .player-image img,
.flag-card:hover .flag-image img {
    transform: scale(1.05);
}

.player-info,
.flag-info {
    padding: 20px;
    background: #ffaa00;
    border-top: 2px solid #cc8800;
}

.player-info h3,
.flag-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.fullname,
.fullname-display {
    color: var(--text-light);
    font-size: 13px;
    margin: 4px 0 10px;
    font-style: italic;
}

.team,
.format {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.player-actions,
.flag-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Single Image Page
   ========================================================================== */
.single-image-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.flag-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-preview {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-height: 700px;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    object-fit: contain;
}

.flag-preview {
    padding: 15px;
    min-height: auto;
}

.flag-preview img {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Ad Banner Below Flag */
.ad-banner-container {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    min-height: 100px;
}

.ad-banner-container .ad-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-details h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.team-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.details-table {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: var(--text-light);
}

.download-buttons {
    margin-bottom: 25px;
}

.usage-info {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.usage-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.usage-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* Related Section */
.related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

/* ==========================================================================
   Trending Page
   ========================================================================== */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.trending-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trending-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
}

.trending-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trending-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.trending-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.downloads {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-us {
    text-align: center;
    padding: 50px 0;
    background-color: var(--bg-light);
    margin: 50px -20px;
    padding: 50px 20px;
}

.why-us h2 {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    padding: 25px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #fafafa;
    color: var(--text-color);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-disclaimer {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
}

.ad-footer {
    background-color: var(--bg-light);
    padding: 20px;
}

/* ==========================================================================
   Pages (About, Contact, Legal)
   ========================================================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.page-content .lead {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.thank-you {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Policy Summary Box */
.policy-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.policy-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    border: none;
    padding: 0;
}

.policy-summary p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Table of Contents */
.toc {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
}

.toc h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.toc ol {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
    font-size: 14px;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .toc ol {
        columns: 1;
    }
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Contact Info Box */
.contact-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Features Grid for About Page */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-item p {
    margin-bottom: 12px;
    font-size: 14px;
}

.feature-item ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
}

.feature-item li {
    margin-bottom: 5px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.benefit-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: var(--success-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.benefit-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.benefit-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.value-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Thank You Text */
.thank-you {
    text-align: center;
    font-size: 1.1rem;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 30px;
}

/* SEO Content Sections */
.seo-content {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.seo-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.seo-content h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.seo-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-content ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.seo-content li {
    margin-bottom: 8px;
}

.bottom-seo {
    margin-top: 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8f9fa 100%);
}

/* Page Header for category pages */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 15px;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.info-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

/* ==========================================================================
   Responsive Design - Mobile First & PWA Optimized
   ========================================================================== */

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 14px 24px;
    }
    
    .btn-small {
        min-height: 40px;
        padding: 10px 18px;
    }
    
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 992px) {
    .single-image-page {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Folder Grid Mobile */
    .folder-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .folder-icon {
        font-size: 36px;
    }
    
    .folder-name {
        font-size: 12px;
    }
    
    /* Mobile Navigation - Enhanced Design */
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        border-radius: var(--radius);
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(44, 85, 48, 0.3);
    }
    
    .mobile-menu-btn span {
        background: #ffffff !important;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(44, 85, 48, 0.4);
    }
    
    .mobile-menu-btn.active {
        background: linear-gradient(135deg, #1a3a1d, var(--primary-dark));
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        transform: translateX(100%);
        left: auto;
        bottom: 0;
        width: 280px;
        max-width: 80%;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        overflow-y: auto;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-radius: 16px 0 0 16px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    /* Mobile Nav Header with Logo */
    .main-nav::before {
        display: none;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px 15px;
        gap: 5px;
        align-items: stretch;
    }
    
    .main-nav > .nav-list > li {
        border-radius: 10px;
        overflow: hidden;
        background: transparent;
        box-shadow: none;
        transition: all 0.3s ease;
        border: none;
        width: 100%;
        max-width: none;
    }
    
    .main-nav > .nav-list > li:first-child {
        border-radius: 10px;
    }
    
    .main-nav > .nav-list > li:last-child {
        border-radius: 10px;
        border-bottom: none;
    }
    
    .main-nav > .nav-list > li:hover {
        box-shadow: none;
        transform: none;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .main-nav a {
        padding: 0 20px;
        height: 48px;
        font-size: 15px;
        font-weight: 500;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        transition: all 0.2s ease;
        line-height: 48px;
        text-align: left;
    }
    
    .main-nav > .nav-list > li > a.active {
        background: #ffffff;
        color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .main-nav > .nav-list > li > a.active:hover {
        background: #ffffff;
        color: var(--primary-color);
    }
    
    /* Hero */
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Grids */
    .player-grid,
    .flag-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .player-info,
    .flag-info {
        padding: 12px;
    }
    
    .player-info h3,
    .flag-info h3 {
        font-size: 0.95rem;
    }
    
    .player-actions,
    .flag-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .player-actions .btn,
    .flag-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 35px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Category Cards */
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-card h3,
    .category-card h2 {
        font-size: 1.1rem;
    }
    
    /* Main Content */
    .main-content {
        padding: 25px 0 40px;
    }
    
    /* Image Preview */
    .image-preview {
        padding: 15px;
    }
    
    .image-preview img {
        max-height: 300px;
    }
    
    /* Details Table */
    .details-table {
        padding: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .logo img {
        height: 38px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .player-grid,
    .flag-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .section h2 {
        font-size: 1.15rem;
    }
    
    .page-content h1 {
        font-size: 1.35rem;
    }
    
    .page-content .lead {
        font-size: 1rem;
    }
    
    /* TOC responsive */
    .toc {
        padding: 15px;
    }
    
    /* Policy pages */
    .legal-section h2 {
        font-size: 1.15rem;
    }
    
    /* Feature grids */
    .feature-grid,
    .benefits-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Trending */
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-card {
        padding: 12px;
    }
    
    /* Why us section */
    .why-us {
        padding: 30px 15px;
        margin: 30px -15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 24px;
    }
    
    /* Download buttons full width on mobile */
    .download-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
    
    /* Empty state */
    .empty-state {
        padding: 40px 20px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 25px 0;
    }
    
    .main-nav.active {
        max-height: 70vh;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    a {
        color: inherit;
        text-decoration: none;
    }
}

/* ==========================================================================
   LIGHTBOX STYLES
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}

.lightbox-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lightbox-actions .btn {
    padding: 12px 30px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: -40px;
        right: -5px;
        font-size: 30px;
    }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ==========================================================================
   Admin Quick Action Toolbar
   ========================================================================== */
.admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3d22 0%, #2c5530 100%);
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.admin-toolbar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-toolbar-label {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.admin-toolbar-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.admin-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

.toolbar-group-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toolbar-btn-folder {
    background: #3498db;
    color: #fff;
}

.toolbar-btn-folder:hover {
    background: #2980b9;
    color: #fff;
}

.toolbar-btn-upload {
    background: #9b59b6;
    color: #fff;
}

.toolbar-btn-upload:hover {
    background: #8e44ad;
    color: #fff;
}

.toolbar-btn-gif {
    background: #e74c3c;
    color: #fff;
}

.toolbar-btn-gif:hover {
    background: #c0392b;
    color: #fff;
}

.toolbar-btn-png {
    background: #27ae60;
    color: #fff;
}

.toolbar-btn-png:hover {
    background: #1e8449;
    color: #fff;
}

.toolbar-btn-dashboard {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-left: auto;
}

.toolbar-btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ==========================================================================
   Admin Inline Actions (for category pages)
   ========================================================================== */
.admin-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1e3d22 0%, #2c5530 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.inline-admin-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-input {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    width: 180px;
    background: rgba(255, 255, 255, 0.9);
}

.admin-input:focus {
    outline: 2px solid #fff;
}

.btn-folder {
    background: #3498db;
    color: #fff;
}

.btn-folder:hover {
    background: #2980b9;
    color: #fff;
}

.btn-upload {
    background: #9b59b6;
    color: #fff;
}

.btn-upload:hover {
    background: #8e44ad;
    color: #fff;
}

.btn-dashboard {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-left: auto;
}

.btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Quick Upload Modal */
.quick-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quick-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.quick-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.quick-upload-form {
    padding: 20px;
}

.quick-upload-form .form-group {
    margin-bottom: 16px;
}

.quick-upload-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.quick-upload-form input[type="text"],
.quick-upload-form input[type="file"],
.quick-upload-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.quick-upload-form textarea {
    resize: vertical;
}

.quick-upload-form .btn-primary {
    width: 100%;
    padding: 12px;
}

@media (max-width: 768px) {
    .admin-inline-actions {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .admin-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .admin-input {
        width: 140px;
        font-size: 12px;
    }
    
    .inline-admin-form {
        flex: 1;
        min-width: 200px;
    }
    
    .btn-dashboard {
        margin-left: 0;
    }
}

body.dark-mode .section-intro {
    color: var(--text-light);
}

body.dark-mode .image-preview {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

body.dark-mode .details-table {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

body.dark-mode .detail-row {
    border-bottom-color: var(--border-color);
}

body.dark-mode .detail-label {
    color: var(--text-light);
}

body.dark-mode .detail-value {
    color: var(--text-color);
}

body.dark-mode .dark-mode-toggle {
    background: var(--bg-light);
    border-color: var(--border-color);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary-dark);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   LOADING SKELETON
   ========================================================================== */
img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 150px;
}

body.dark-mode img.loading {
    background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
    align-items: center;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 5px;
}

.share-btn.share-native {
    padding: 12px 25px;
    background: #333333;
    color: white;
    border: 2px solid #000000;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn.share-native svg {
    width: 20px;
    height: 20px;
}

.share-btn.share-native:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .share-btn.share-native {
    background: #444444;
    border-color: #666666;
    color: white;
}

/* ==========================================================================
   SORT & FILTER CONTROLS
   ========================================================================== */
.sort-row {
    margin-bottom: 10px;
    padding: 15px;
    background: #fdf5e6;
    border-radius: var(--radius);
    border: 1px solid #d4a84b;
}

.bulk-row {
    margin-bottom: 15px;
    padding: 15px;
    background: #fdf5e6;
    border-radius: var(--radius);
    border: 1px solid #d4a84b;
}

.filter-controls {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 15px;
    background: #fdf5e6;
    border-radius: var(--radius);
    border: 1px solid #d4a84b;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

body.dark-mode .sort-select {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

.filter-count {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.real-time-search {
    flex: 1;
    min-width: 200px;
}

.filter-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

body.dark-mode .filter-input {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls label {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .real-time-search {
        width: 100%;
    }
    
    .sort-controls,
    .bulk-controls {
        justify-content: space-between;
    }
}

/* ==========================================================================
   BULK DOWNLOAD
   ========================================================================== */
.bulk-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.bulk-controls .btn {
    margin-right: 10px;
}

body.dark-mode .bulk-controls {
    background: var(--bg-light);
}

.bulk-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.bulk-count {
    color: var(--primary-color);
    font-weight: 600;
}

.flag-card.selected,
.player-card.selected {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.bulk-mode .flag-card,
.bulk-mode .player-card {
    cursor: pointer;
}

.bulk-mode .flag-card::before,
.bulk-mode .player-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
    z-index: 10;
}

.bulk-mode .flag-card.selected::before,
.bulk-mode .player-card.selected::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.bulk-mode .flag-card.selected::after,
.bulk-mode .player-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    left: 16px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 11;
}

/* ==========================================================================
   EMPTY STATE IMPROVEMENTS
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

body.dark-mode .empty-state {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Banner Ad Container
   ========================================================================== */
.banner-ad-container {
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.banner-ad {
    max-width: 728px;
    margin: 0 auto;
}

.ad-placeholder {
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Related Searches Section
   ========================================================================== */
.related-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.related-section h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
}

.related-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a1e 100%);
    color: white;
}

/* ==========================================================================
   More Categories Section
   ========================================================================== */
.more-categories-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-radius: 16px;
    border: 1px solid #ffc107;
}

.more-categories-section h3 {
    font-size: 1.3rem;
    color: #856404;
    margin-bottom: 20px;
    font-weight: 600;
}

.more-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.more-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ffe082;
}

.more-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #ffc107;
}

.more-category-card .category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.more-category-card .category-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: center;
    margin-bottom: 5px;
}

.more-category-card .category-count {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-tags {
        gap: 8px;
    }
    
    .related-tag {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .more-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-ad-container {
        padding: 15px;
        margin: 25px 0;
    }
    
    .ad-placeholder {
        padding: 40px 15px;
    }
}
/* ==========================================================================
   Feedback Page Styles - Centered Cricket Theme
   ========================================================================== */
.feedback-page-wrap {
    padding: 12px 0 20px;
}

.feedback-shell {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 34px;
    background: linear-gradient(180deg, #f8fff8 0%, #f1f8f2 100%);
    border: 1px solid #d7ebd8;
    box-shadow: 0 16px 36px rgba(34, 86, 40, 0.12);
    position: relative;
    overflow: hidden;
    animation: feedbackFadeIn 0.6s ease-out;
}

.feedback-shell::before,
.feedback-shell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.feedback-shell::before {
    width: 260px;
    height: 260px;
    top: -100px;
    right: -110px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.22) 0%, rgba(46, 125, 50, 0) 70%);
}

.feedback-shell::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -90px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.18) 0%, rgba(76, 175, 80, 0) 68%);
}

.feedback-hero,
.feedback-card {
    position: relative;
    z-index: 1;
}

.feedback-hero {
    text-align: center;
    margin-bottom: 24px;
}

.feedback-hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #103b1b;
}

.feedback-title-icon {
    font-size: 1.65rem;
}

.feedback-hero p {
    margin: 0;
    font-size: 1.04rem;
    color: #2f4a35;
}

.feedback-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2efe4;
    box-shadow: 0 10px 28px rgba(28, 63, 34, 0.12);
    padding: 30px;
}

.feedback-form .form-group {
    margin-bottom: 22px;
}

.feedback-form label {
    display: inline-block;
    margin-bottom: 9px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #1c3b24;
    letter-spacing: 0.2px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    font-size: 0.98rem;
    color: #17311e;
    background: #fcfffc;
    border: 1.8px solid #c8dfcc;
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #84a08a;
}

.feedback-form input:hover,
.feedback-form select:hover,
.feedback-form textarea:hover {
    border-color: #9fc9a6;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.18);
}

.feedback-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232f4a35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.feedback-form textarea {
    min-height: 165px;
    resize: vertical;
    line-height: 1.55;
}

.feedback-form small {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #5f7866;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feedback-form .btn-full {
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
    border: none;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    background: linear-gradient(120deg, #1b5e20 0%, #2e7d32 52%, #43a047 100%);
    background-size: 200% 100%;
    box-shadow: 0 9px 20px rgba(46, 125, 50, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.35s ease;
}

.feedback-form .btn-full span {
    font-size: 1.05rem;
}

.feedback-form .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(46, 125, 50, 0.4);
    background-position: 100% 0;
}

.feedback-form .btn-full:active {
    transform: translateY(0);
}

.success-message,
.error-message {
    max-width: 860px;
    margin: 0 auto 18px;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
    animation: feedbackFadeIn 0.4s ease-out;
}

.success-message {
    color: #0d5332;
    background: #d8f3e5;
    border: 1px solid #9fd9bc;
}

.error-message {
    color: #8d1f1f;
    background: #fee2e2;
    border: 1px solid #f9b5b5;
}

@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .feedback-shell {
        padding: 24px;
        border-radius: 22px;
    }

    .feedback-card {
        padding: 22px;
    }

    .feedback-hero h1 {
        font-size: 1.65rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .feedback-page-wrap {
        padding-top: 6px;
    }

    .feedback-shell {
        padding: 16px;
        border-radius: 18px;
    }

    .feedback-card {
        padding: 16px;
        border-radius: 16px;
    }

    .feedback-hero h1 {
        font-size: 1.35rem;
    }

    .feedback-hero p {
        font-size: 0.95rem;
    }

    .feedback-form label {
        font-size: 0.92rem;
    }

    .feedback-form input,
    .feedback-form select,
    .feedback-form textarea,
    .feedback-form .btn-full {
        font-size: 0.94rem;
    }
}

/* ==========================================================================
   Google AdSense Ad Container Styles
   ========================================================================== */
.ad-container {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
}

.ad-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Header Banner Ad */
.ad-header {
    margin: 15px auto;
    max-width: 728px;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

/* Sidebar Ad */
.ad-sidebar {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
}

/* In-Content Ad */
.ad-in-content {
    margin: 30px auto;
    max-width: 600px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px dashed #d1d5db;
}

/* Footer Banner Ad */
.ad-footer {
    margin: 30px auto 0;
    max-width: 728px;
    background: linear-gradient(145deg, #f0f0f0 0%, #e5e5e5 100%);
}

/* In-Feed Ad (between grid items) */
.ad-in-feed {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border: 2px solid #e5e7eb;
}

.ad-in-feed .ad-label {
    color: #6b7280;
}

/* Ad responsive styles */
.ad-container ins {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .ad-header,
    .ad-footer {
        margin: 10px auto;
        padding: 10px;
    }
    
    .ad-in-content {
        margin: 20px auto;
    }
    
    .ad-sidebar {
        display: none; /* Hide sidebar ads on mobile */
    }
}