/* فۆنتی کوردی */
@font-face {
    font-family: 'ameerxoshnaw';
    src: url('/ameer/fonts/ameerxoshnaw_V2.woff2') format('woff2'),
         url('/ameer/fonts/ameerxoshnaw_V2.woff') format('woff');
    font-display: swap;
}

.ameerxoshnaw {
    font-family: 'ameerxoshnaw', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ad Container */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Advertising Banner */
.ad-banner {
    display: block;
    max-width: 728px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-color);
}

@media (max-width: 768px) {
    .ad-banner {
        max-width: 320px; /* Mobile banner size */
    }
}

@media (max-width: 480px) {
    .ad-banner {
        max-width: 300px;
    }
}

.ad-banner {
    display: block;
    max-width: 728px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ad-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-color);
}
/* گۆڕاوەکانی ڕەنگ */
:root {
    --primary-bg: #0a0b12;
    --secondary-bg: #151829;
    --accent-bg: #1e2139;
    --primary-color: #00d4ff;
    --secondary-color: #64ffda;
    --text-color: #e8f4f8;
    --text-muted: #b0bec5;
    --border-color: #2a2f4a;
    --shadow-color: rgba(0, 212, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #64ffda 100%);
}

[data-theme="light"] {
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --accent-bg: #f1f5f9;
    --primary-color: #0ea5e9;
    --secondary-color: #06b6d4;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(14, 165, 233, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-bg);
    color: var(--text-color);
    font-family: 'ameerxoshnaw', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* پاشبنەمای ئەنیمەیشن */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* سەربەند */
.header {
    background: rgba(21, 24, 41, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🎬';
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* گۆڕەری دۆخ */
.theme-toggle {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* کۆنتەینەری سەرەکی */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(21, 24, 41, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: containerSlideIn 0.8s ease-out;
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

h1, h2, h3 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 0 30px var(--primary-color);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* فۆڕمەکان */
.form-container {
    background: var(--accent-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

input, select, textarea, button {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.file-upload-wrapper input[type="file"] {
    width: 100%;
    height: 50px;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-text {
    color: var(--text-muted);
    flex-grow: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0.5rem;
}

.file-upload-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.file-upload-label:hover .file-upload-button {
    transform: scale(1.05);
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-wrapper input[type="file"]:focus + .file-upload-label,
.file-upload-wrapper input[type="file"]:active + .file-upload-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* reCAPTCHA Styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* دوگمەکان */
button {
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

button:not(:disabled):hover::before {
    left: 100%;
}

button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

button:active {
    transform: translateY(-1px);
}

/* گرووپی دوگمەکان */
.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* خشتە */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
}

table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

table tr:hover td {
    background: var(--accent-bg);
    transform: scale(1.01);
}

/* دەقی دەستکاریکراو */
.editable {
    background: var(--accent-bg) !important;
    border-radius: 8px;
    padding: 0.8rem;
    min-height: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.editable:hover {
    background: var(--secondary-bg) !important;
    cursor: text;
}

.editable:focus {
    outline: 2px solid var(--primary-color);
    background: var(--secondary-bg) !important;
    box-shadow: 0 0 20px var(--shadow-color);
}

/* لۆدینگ */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--accent-bg);
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* لینکەکان */
a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border-radius: 25px;
    display: inline-block;
    margin-top: 1rem;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

a::before {
    content: '⬇';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

a:hover::before {
    transform: translateY(2px);
}

/* ڕیسپۆنسیڤ */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 0.8rem 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    input, button, select {
        padding: 0.8rem 1rem;
    }
}

/* ئەنیمەیشنەکانی زیاتر */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* پارێزراوی لە کۆپی */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* قەدەغەکردنی ڕاست کلیک */
.protected {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* کاتی پڕینتکردن */
@media print {
    body { background: white; color: black; }
    .container { box-shadow: none; border: 1px solid #ccc; }
}