/* assets/css/style.css */
:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-gold: #ffb703; /* لون مؤشر الإعادة - Rewatch Index Color */
    --accent-blue: #219ebc;
    --nav-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: var(--nav-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
}

.navbar .logo span {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 10px;
}

/* شبكة المباريات - Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* كارت المباراة - Match Card */
.match-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.promotion-badge {
    background: var(--accent-blue);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.wrestlers {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--text-main);
}

.wrestlers span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 5px;
}

.scores-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.score-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
}

.rewatch-highlight {
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid var(--accent-gold);
}

.rewatch-highlight .score-value {
    color: var(--accent-gold);
    font-weight: bold;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 5px;
}

.score-value small {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* تنسيقات صفحة المباراة والنماذج - Match Page & Forms Styles */
.match-details-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
    text-align: center;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.alert-warning {
    background-color: rgba(255, 183, 3, 0.2);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.alert-info {
    background-color: rgba(33, 158, 188, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.rating-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid #444;
    color: var(--text-main);
    border-radius: 6px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background: #e0a000;
}

/* تنسيقات قسم المراجعات - Reviews Section Styles */
.reviews-section {
    margin-top: 40px;
    border-top: 2px solid #333;
    padding-top: 20px;
}

.review-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-badge {
    background: var(--accent-blue);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.review-scores {
    display: flex;
    gap: 15px;
}

.review-scores span {
    background: var(--bg-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.review-text {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.05rem;
}
/* تنسيقات شارات التوب 10 - Top 10 Badges Styles */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.badge-top10 {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.badge-history { background: linear-gradient(45deg, #ffd700, #ff8c00); color: #000; }
.badge-year { background: linear-gradient(45deg, #4facfe, #00f2fe); color: #000; }
.badge-month { background: linear-gradient(45deg, #43e97b, #38f9d7); color: #000; }
.badge-wrestler { background: linear-gradient(45deg, #ff0844, #ffb199); color: #fff; }


/* حاوية الرموز - Icons Container */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

/* تصميم الرمز الدائري - Circular Icon Design */
.badge-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: help;
    background: #1a1a1a;
    border: 1px solid #444;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-icon:hover {
    transform: scale(1.15);
    z-index: 10;
}

/* ألوان الرموز - Icon Colors */
.badge-history { border-color: #ffb703; box-shadow: 0 0 8px rgba(255, 183, 3, 0.4); }
.badge-year { border-color: #219ebc; box-shadow: 0 0 8px rgba(33, 158, 188, 0.4); }
.badge-month { border-color: #8e44ad; box-shadow: 0 0 8px rgba(142, 68, 173, 0.4); }
.badge-wrestler { border-color: #ff4d4d; box-shadow: 0 0 8px rgba(255, 77, 77, 0.4); }

/* تصميم التلميح (النص المخفي) - Tooltip Design */
.badge-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border: 1px solid var(--accent-gold);
    pointer-events: none;
    font-family: inherit;
    font-weight: normal;
}

/* سهم صغير أسفل التلميح - Small arrow below tooltip */
.badge-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent-gold) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.badge-icon[data-tooltip]:hover::after,
.badge-icon[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* تنسيقات دليل المصارعين والبحث الذكي - Wrestlers Directory & Smart Search */
/* --- مربع البحث العملاق والذكي - Giant Smart Search Box --- */
.search-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* عرض ضخم جداً - Very massive width */
    margin: 0 auto 50px auto;
}

.search-input {
    width: 100%;
    padding: 25px 40px; /* حشوة داخلية ضخمة - Massive internal padding */
    font-size: 1.8rem; /* خط كبير جداً وواضح - Very large and clear font */
    border-radius: 50px;
    border: 3px solid #333;
    background: #111;
    color: #fff;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(33, 158, 188, 0.4);
    background: #1a1a1a;
}

/* --- تنسيق شارات الاتحادات المتعددة - Multiple Companies Badges --- */
.companies-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.company-tag {
    background: #222;
    color: #ccc;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #444;
    text-transform: uppercase;
    font-weight: bold;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 15px 15px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.suggest-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggest-item:hover {
    background: var(--accent-blue);
    color: #fff;
}

.suggest-item:last-child {
    border-bottom: none;
}
/* شبكة المصارعين المعدلة - Updated Wrestlers Grid */
.wrestler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* إجبار الرابط على أخذ مساحة الشبكة بالكامل */
/* Force the link to take the full grid space */
.wrestler-grid a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.wrestler-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrestler-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

/* تنسيقات أزرار التقييم السريعة - Quick Tags Styles */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-checkbox { display: none; }
.tag-label { 
    display: inline-block; padding: 6px 14px; border-radius: 20px; 
    border: 1px solid #444; color: #aaa; cursor: pointer; 
    font-size: 0.85rem; transition: all 0.2s ease; background: #111; user-select: none;
}
.tag-checkbox:checked + .tag-label.tag-pos { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.tag-checkbox:checked + .tag-label.tag-style { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }
.tag-checkbox:checked + .tag-label.tag-neg { background: #ff4d4d; color: #fff; border-color: #ff4d4d; }

/* عرض التاجز في المراجعات - Display tags in reviews */
.review-tag-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; margin-right: 5px; margin-top: 8px; background: #222; border: 1px solid #444; color: #ddd;
}