/* ===== 🚀 CADIT CINEMA MAGAZINE UI - PREMIUM 🚀 ===== */
:root { --mag-bg: #060b14; --mag-card: rgba(22, 27, 34, 0.7); --mag-border: rgba(255, 255, 255, 0.1); --mag-text: #c9d1d9; --mag-muted: #8b949e; --mag-red: #e53935; --mag-red-glow: rgba(229, 57, 53, 0.25); --mag-purple: #9333ea; --mag-radius: 16px; --mag-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.mag-wrap { max-width: 1300px; margin: 0 auto; padding: 60px 20px; font-family: 'Assistant', sans-serif; direction: rtl; color: var(--mag-text); }
.mag-header { text-align: center; margin-bottom: 50px; position: relative; }
.mag-header::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--mag-red), transparent); margin: 20px auto 0; border-radius: 2px; }
.mag-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 15px; }
.mag-subtitle { font-size: 1.2rem; color: var(--mag-muted); max-width: 600px; margin: 0 auto; }
.mag-actions { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.mag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 30px; font-weight: 800; font-size: 15px; text-decoration: none !important; transition: all 0.3s ease; border: none; cursor: pointer; color: #fff; }
.mag-btn-outline { background: rgba(255,255,255,0.05); border: 1px solid var(--mag-border); color: var(--mag-text); }
.mag-btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); box-shadow: var(--mag-shadow); color: #fff; }
.mag-btn-primary { background: linear-gradient(135deg, var(--mag-red), #b71c1c); box-shadow: 0 10px 20px var(--mag-red-glow); }
.mag-btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(229,57,53,0.4); }
.mag-btn-ai { background: linear-gradient(135deg, var(--mag-purple), #6b21a8); box-shadow: 0 10px 20px rgba(147,51,234,0.3); border: 1px solid rgba(255,255,255,0.1); }
.mag-btn-ai:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(147,51,234,0.5); }
.mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.mag-card { background: var(--mag-card); border: 1px solid var(--mag-border); border-radius: var(--mag-radius); overflow: hidden; transition: all 0.4s ease; text-decoration: none; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.mag-card:hover { transform: translateY(-10px); border-color: rgba(229,57,53,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px var(--mag-red-glow); }
.mag-card-img-wrap { position: relative; overflow: hidden; height: 240px; }
.mag-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mag-card:hover .mag-card-img { transform: scale(1.08); }
.mag-tag { position: absolute; top: 15px; right: 15px; background: rgba(229,57,53,0.9); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 14px; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px; backdrop-filter: blur(4px); z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.mag-card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.mag-card-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.3; transition: color 0.3s; }
.mag-card:hover .mag-card-title { color: var(--mag-red); }
.mag-card-excerpt { color: var(--mag-muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mag-card-meta { display: flex; justify-content: space-between; color: #8b949e; font-size: 13px; font-weight: 600; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.mag-single { max-width: 900px; margin: 0 auto; background: var(--mag-card); border: 1px solid var(--mag-border); border-radius: 24px; padding: 50px; box-shadow: var(--mag-shadow); backdrop-filter: blur(20px); }
@media (max-width: 768px) { .mag-single { padding: 30px 20px; } }
.mag-single-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 20px; color: var(--mag-muted); font-size: 14px; font-weight: 600; background: rgba(0,0,0,0.5); padding: 12px 24px; border-radius: 50px; border: 1px solid var(--mag-border); margin-bottom: 25px; }
.mag-single-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 20px; text-align: center; }
.mag-single-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 16px; margin: 30px 0; box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 1px solid var(--mag-border); }
.mag-content { font-size: 19px; line-height: 1.9; color: #d1d5db; }
.mag-content h2, .mag-content h3 { color: #fff; margin: 40px 0 20px; font-weight: 800; border-bottom: 2px solid var(--mag-red-glow); padding-bottom: 10px; display: inline-block; }
.mag-content p { margin-bottom: 25px; }
.mag-content a { color: var(--mag-red); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.mag-content a:hover { color: #ff8080; }
.mag-content blockquote { border-right: 4px solid var(--mag-red); background: linear-gradient(90deg, transparent, rgba(229,57,53,0.05)); padding: 25px; margin: 35px 0; border-radius: 12px; font-style: italic; font-size: 22px; color: #ff8080; }
.mag-form-card { background: var(--mag-card); border: 1px solid var(--mag-border); border-radius: 24px; padding: 40px; max-width: 900px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.mag-group { margin-bottom: 25px; }
.mag-label { display: block; margin-bottom: 10px; font-weight: 700; color: #fff; font-size: 15px; }
.mag-input, .mag-select { width: 100%; padding: 16px 20px; background: rgba(0,0,0,0.4); border: 1px solid var(--mag-border); border-radius: 12px; color: #fff; font-size: 16px; font-family: inherit; transition: all 0.3s ease; outline: none; box-sizing: border-box; }
.mag-input:focus, .mag-select:focus { border-color: var(--mag-red); box-shadow: 0 0 0 3px var(--mag-red-glow); background: rgba(0,0,0,0.6); }
.mag-toolbar { background: rgba(0,0,0,0.8); border: 1px solid var(--mag-border); border-bottom: none; border-radius: 12px 12px 0 0; padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.mag-tool-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: bold; transition: background 0.2s; }
.mag-tool-btn:hover { background: var(--mag-red); }
.mag-textarea { width: 100%; min-height: 400px; padding: 25px; background: rgba(0,0,0,0.4); border: 1px solid var(--mag-border); border-radius: 0 0 12px 12px; color: #e6edf3; font-size: 16px; line-height: 1.8; outline: none; resize: vertical; box-sizing: border-box; }
.mag-textarea:focus { border-color: var(--mag-red); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.mag-alert { padding: 20px; border-radius: 12px; margin-bottom: 25px; font-weight: bold; text-align: center; font-size: 18px; }
.mag-alert-success { background: rgba(63,185,80,0.15); color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.mag-alert-error { background: rgba(248,81,73,0.15); color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.mag-ai-panel { background: linear-gradient(135deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9)); border: 1px solid rgba(147,51,234,0.3); border-radius: 24px; padding: 50px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 40px rgba(147,51,234,0.1); max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; }
.mag-ai-panel::before { content: '🤖'; position: absolute; top: -30px; right: 20px; font-size: 150px; opacity: 0.05; transform: rotate(15deg); pointer-events: none; }
.ai-spinner { display: none; margin: 30px auto; width: 60px; height: 60px; border: 4px solid rgba(147,51,234,0.1); border-top-color: #a855f7; border-radius: 50%; animation: ai-spin 1s linear infinite; }
@keyframes ai-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.mag-inline-code { background: rgba(255,255,255,0.1); color: #ff8080; padding: 3px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9em; }
.mag-content li { margin-bottom: 10px; list-style-position: inside; }
/* ===== 🚀 MAGAZINE PREMIUM UPGRADES 🚀 ===== */
.mag-hero-post { display: flex; flex-direction: column; background: var(--mag-card); border: 1px solid var(--mag-border); border-radius: 24px; overflow: hidden; margin-bottom: 50px; transition: all 0.4s ease; text-decoration: none; backdrop-filter: blur(10px); }
.mag-hero-post:hover { border-color: var(--mag-red); box-shadow: 0 20px 50px rgba(229,57,53,0.15); transform: translateY(-5px); }
.mag-hero-img-wrap { width: 100%; height: 450px; overflow: hidden; position: relative; }
.mag-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.mag-hero-post:hover .mag-hero-img { transform: scale(1.05); }
.mag-hero-body { padding: 40px; text-align: right; }
.mag-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; margin-bottom: 15px; line-height: 1.1; transition: color 0.3s; }
.mag-hero-post:hover .mag-hero-title { color: var(--mag-red); }
.mag-hero-excerpt { font-size: 18px; color: var(--mag-muted); line-height: 1.6; margin-bottom: 25px; max-width: 900px; }
.mag-meta-bar { display: flex; align-items: center; gap: 20px; color: #8b949e; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.read-time { display: inline-flex; align-items: center; gap: 5px; background: rgba(229,57,53,0.1); color: var(--mag-red); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 800; border: 1px solid rgba(229,57,53,0.2); }
.mag-post-header { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.mag-post-hero-img { width: 100%; height: 60vh; max-height: 600px; object-fit: cover; border-radius: 24px; margin-bottom: 50px; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 1px solid var(--mag-border); }
.mag-post-content { font-size: 20px; line-height: 1.9; color: #d1d5db; max-width: 850px; margin: 0 auto; }
.terminal-box { background: #0a0a0a; border: 1px solid #333; border-radius: 12px; padding: 20px; font-family: 'Courier New', monospace; color: #0f0; text-align: left; direction: ltr; height: 250px; overflow-y: auto; margin-top: 30px; box-shadow: inset 0 0 30px rgba(0,255,0,0.05); }
.terminal-line { margin-bottom: 8px; font-size: 14px; line-height: 1.4; }
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
@media (min-width: 992px) { .mag-hero-post { flex-direction: row; height: 450px; } .mag-hero-img-wrap { width: 55%; height: 100%; } .mag-hero-body { width: 45%; display: flex; flex-direction: column; justify-content: center; } }