/*
Theme Name: دليل المنصات الرقمية
Theme URI: https://example.com/freelance-directory
Author: Freelance Directory Team
Author URI: https://example.com
Description: قالب ووردبريس احترافي لعرض دليل شامل لمنصات العمل الحر والخدمات الرقمية. يدعم اللغة العربية والإنجليزية والفرنسية مع وضع ليلي/نهاري.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelance-directory
Tags: rtl-language-support, translation-ready, custom-colors, custom-menu, featured-images, theme-options
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ===== CSS Variables ===== */
:root {
    /* Light Mode Colors */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
}

[data-theme="dark"] {
    --bg-main: #030712;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(55, 65, 81, 0.5);
    --border-hover: rgba(75, 85, 99, 0.8);
}

/* ===== 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, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL Support */
body.rtl,
[dir="rtl"] body,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] span,
[dir="rtl"] div,
[dir="rtl"] a {
    text-align: right;
}

[dir="rtl"] .hero-section,
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle {
    text-align: center;
}

[dir="rtl"] .platform-card,
[dir="rtl"] .stat-card {
    text-align: center;
}

[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-title,
[dir="rtl"] .footer-links {
    text-align: right;
}

[dir="rtl"] .footer-links a {
    text-align: right;
    display: block;
}

[dir="rtl"] .category-title,
[dir="rtl"] .category-header {
    text-align: right;
}

[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="rtl"] .platform-detail-header {
    text-align: right;
}

[dir="rtl"] .platform-detail-description {
    text-align: right;
}

/* LTR Support for non-RTL languages */
html[dir="ltr"],
[dir="ltr"] {
    direction: ltr !important;
}

[dir="ltr"] body,
body.ltr {
    direction: ltr !important;
    text-align: left !important;
}

[dir="ltr"] * {
    text-align: left;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6,
[dir="ltr"] p,
[dir="ltr"] li,
[dir="ltr"] span,
[dir="ltr"] div,
[dir="ltr"] a,
[dir="ltr"] label,
[dir="ltr"] input,
[dir="ltr"] textarea,
[dir="ltr"] select,
[dir="ltr"] .footer-brand,
[dir="ltr"] .footer-title,
[dir="ltr"] .footer-links,
[dir="ltr"] .footer-links a,
[dir="ltr"] .category-title,
[dir="ltr"] .category-header,
[dir="ltr"] .nav-link,
[dir="ltr"] .platform-detail-header,
[dir="ltr"] .platform-detail-description,
[dir="ltr"] .platform-description,
[dir="ltr"] .info-card,
[dir="ltr"] .compare-header,
[dir="ltr"] .compare-title,
[dir="ltr"] .compare-subtitle,
[dir="ltr"] .page-content,
[dir="ltr"] .page-content h2,
[dir="ltr"] .page-content p,
[dir="ltr"] .review-form-section,
[dir="ltr"] .form-group,
[dir="ltr"] .form-group label {
    text-align: left !important;
}

[dir="ltr"] .hero-section,
[dir="ltr"] .hero-title,
[dir="ltr"] .hero-subtitle {
    text-align: center !important;
}

[dir="ltr"] .platform-card,
[dir="ltr"] .stat-card {
    text-align: center !important;
}

[dir="ltr"] .footer-brand,
[dir="ltr"] .footer-title,
[dir="ltr"] .footer-links {
    text-align: left !important;
}

[dir="ltr"] .footer-links a,
[dir="ltr"] .footer-links li,
[dir="ltr"] .footer-links li a {
    text-align: left !important;
    display: block;
}

[dir="ltr"] .site-footer,
[dir="ltr"] .site-footer * {
    text-align: left;
}

[dir="ltr"] .footer-bottom {
    text-align: center !important;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rtl .site-logo {
    flex-direction: row-reverse;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.site-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.rtl .lang-option {
    text-align: right;
}

.lang-option:hover,
.lang-option.active {
    background: var(--bg-card-hover);
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rtl .search-input {
    padding-right: 1.5rem;
    padding-left: 3rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.rtl .search-icon {
    right: auto;
    left: 1rem;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Category Filter ===== */
.category-filter {
    padding: 2rem 0;
}

.category-filter .container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-card);
}

.category-filter .container::-webkit-scrollbar {
    height: 6px;
}

.category-filter .container::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.category-filter .container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    list-style: none;
}

@media (max-width: 768px) {
    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.category-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.category-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.category-btn:not(.active) .category-count {
    background: var(--bg-card-hover);
}

/* ===== Category Section ===== */
.category-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rtl .category-title-wrapper {
    flex-direction: row-reverse;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title {
    font-size: 1.5rem;
    margin: 0;
}

.category-platform-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Platform Grid ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .platform-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .platform-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== Platform Card ===== */
.platform-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.platform-card:nth-child(1) { animation-delay: 0.05s; }
.platform-card:nth-child(2) { animation-delay: 0.1s; }
.platform-card:nth-child(3) { animation-delay: 0.15s; }
.platform-card:nth-child(4) { animation-delay: 0.2s; }
.platform-card:nth-child(5) { animation-delay: 0.25s; }
.platform-card:nth-child(6) { animation-delay: 0.3s; }
.platform-card:nth-child(7) { animation-delay: 0.35s; }
.platform-card:nth-child(8) { animation-delay: 0.4s; }
.platform-card:nth-child(9) { animation-delay: 0.45s; }
.platform-card:nth-child(10) { animation-delay: 0.5s; }
.platform-card:nth-child(11) { animation-delay: 0.55s; }
.platform-card:nth-child(12) { animation-delay: 0.6s; }

.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
    z-index: 10;
}

.platform-card.featured {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
}

.top-rated-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.rtl .top-rated-badge {
    right: auto;
    left: -8px;
}

.top-rated-badge svg {
    width: 16px;
    height: 16px;
    color: white;
}

.platform-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.platform-card:nth-child(1) .platform-logo { animation-delay: 0s; }
.platform-card:nth-child(2) .platform-logo { animation-delay: 0.2s; }
.platform-card:nth-child(3) .platform-logo { animation-delay: 0.4s; }
.platform-card:nth-child(4) .platform-logo { animation-delay: 0.6s; }
.platform-card:nth-child(5) .platform-logo { animation-delay: 0.8s; }
.platform-card:nth-child(6) .platform-logo { animation-delay: 1s; }

.platform-card:hover .platform-logo {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    animation: none;
}

.platform-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.platform-logo .logo-letter {
    font-size: 1.5rem;
    font-weight: 700;
}

.platform-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.platform-card:hover .platform-name {
    color: var(--accent-color);
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star-rating .star {
    width: 12px;
    height: 12px;
    color: #d1d5db;
}

.star-rating .star.filled {
    color: var(--accent-color);
}

.star-rating .rating-value {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.rtl .star-rating .rating-value {
    margin-left: 0;
    margin-right: 0.25rem;
}

.platform-founded {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.platform-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-external-link {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(31, 41, 55, 0.8);
    color: var(--text-secondary);
    opacity: 0;
    transition: all 0.3s ease;
}

.rtl .platform-external-link {
    left: auto;
    right: 12px;
}

.platform-card:hover .platform-external-link {
    opacity: 1;
}

.platform-external-link:hover {
    background: var(--accent-color);
    color: white;
}

.platform-accent-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.platform-card:hover .platform-accent-bar {
    width: 50%;
}

/* ===== Compare Page ===== */
.compare-section {
    padding: 4rem 0;
}

.compare-header {
    text-align: center;
    margin-bottom: 3rem;
}

.compare-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.compare-subtitle {
    color: var(--text-secondary);
}

.compare-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .compare-selector {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
}

.platform-select {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.vs-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin: 0 auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th {
    background: var(--bg-card);
    font-weight: 600;
}

.compare-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ===== Platform Detail Page ===== */
.platform-detail {
    padding: 4rem 0;
}

.platform-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .platform-detail-header {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }
    
    .rtl .platform-detail-header {
        flex-direction: row-reverse;
        text-align: right;
    }
}

.platform-detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .platform-detail-logo {
        margin-bottom: 0;
    }
}

.platform-detail-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.platform-detail-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.platform-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.platform-detail-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .platform-detail-rating {
        justify-content: flex-start;
    }
    
    .rtl .platform-detail-rating {
        justify-content: flex-end;
    }
}

.platform-detail-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.platform-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .platform-detail-actions {
        justify-content: flex-start;
    }
    
    .rtl .platform-detail-actions {
        justify-content: flex-end;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Platform Info Cards */
.platform-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .platform-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.info-card-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.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;
}
