/**
 * صفحة مؤقتة — الهوية البصرية السورية
 */

:root {
    --forest: #002623;
    --emerald: #094239;
    --teal: #428177;
    --golden: #b9a779;
    --sand: #988561;
    --ivory: #edebe0;
    --damask: #6b1f2a;
    --charcoal: #161616;
    --stone: #3d3a3b;
    --white: #ffffff;
    --shadow: rgba(0, 38, 35, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--charcoal);
    background: var(--forest);
    direction: rtl;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(66, 129, 119, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(185, 167, 121, 0.15) 0%, transparent 50%),
        linear-gradient(165deg, var(--forest) 0%, var(--emerald) 45%, #0a3530 100%);
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b9a779' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40 Z'/%3E%3C/g%3E%3C/svg%3E");
    animation: patternDrift 60s linear infinite;
}

@keyframes patternDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(80px, 80px); }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--golden);
    opacity: 0;
    animation: floatUp var(--dur, 8s) var(--delay, 0s) ease-in infinite;
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; --dur: 9s;  --delay: 0s; }
.particle:nth-child(2) { width: 4px; height: 4px; left: 25%; --dur: 11s; --delay: 2s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 40%; --dur: 7s;  --delay: 1s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 55%; --dur: 10s; --delay: 3s; }
.particle:nth-child(5) { width: 7px; height: 7px; left: 70%; --dur: 8s;  --delay: 0.5s; }
.particle:nth-child(6) { width: 4px; height: 4px; left: 85%; --dur: 12s; --delay: 4s; }
.particle:nth-child(7) { width: 6px; height: 6px; left: 15%; --dur: 9s;  --delay: 5s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 60%; --dur: 10s; --delay: 6s; }

@keyframes floatUp {
    0%   { bottom: -5%; opacity: 0; transform: translateX(0); }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.3; }
    100% { bottom: 105%; opacity: 0; transform: translateX(20px); }
}

.page-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 1.5rem;
}

.main-card {
    width: 100%;
    max-width: 560px;
    background: rgba(237, 235, 224, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem var(--shadow), 0 0 0 1px rgba(185, 167, 121, 0.25);
    overflow: hidden;
    animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header-band {
    background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header-band::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--golden), var(--sand), var(--golden));
}

.card-header-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.logo-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.logo-wrap img {
    max-height: 88px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.org-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.5;
}

.org-dept {
    position: relative;
    z-index: 1;
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 31, 42, 0.1);
    color: var(--damask);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(107, 31, 42, 0.15);
    animation: fadeIn 0.6s 0.3s both;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--damask);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(107, 31, 42, 0.5); }
    50%      { opacity: 0.5; box-shadow: 0 0 0 6px rgba(107, 31, 42, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-title {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--forest);
    line-height: 1.35;
    animation: fadeIn 0.6s 0.4s both;
}

.page-subtitle {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    color: var(--stone);
    line-height: 1.75;
    animation: fadeIn 0.6s 0.5s both;
}

.progress-section {
    margin-bottom: 1.75rem;
    animation: fadeIn 0.6s 0.6s both;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--stone);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-label span:last-child {
    color: var(--teal);
    font-weight: 700;
}

.progress-track {
    height: 6px;
    background: rgba(0, 38, 35, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--golden));
    border-radius: 3px;
    animation: progressAnim 2s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes progressAnim {
    to { width: var(--progress, 65%); }
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    animation: fadeIn 0.6s 0.7s both;
}

.feature-item {
    background: rgba(0, 38, 35, 0.05);
    border: 1px solid rgba(0, 38, 35, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 38, 35, 0.1);
}

.feature-icon {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    display: block;
}

.feature-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald);
    line-height: 1.4;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand), transparent);
    margin: 0 0 1.5rem;
}

.contact-block { animation: fadeIn 0.6s 0.8s both; }

.contact-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--forest);
    margin: 0 0 0.75rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 38, 35, 0.12);
    border-radius: 2rem;
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.contact-link:hover {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.page-footer {
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeIn 0.6s 0.9s both;
}

.footer-text {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(237, 235, 224, 0.55);
    font-weight: 500;
}

.footer-text strong {
    color: rgba(185, 167, 121, 0.85);
    font-weight: 700;
}

.ornament {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 90vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--golden), transparent);
    opacity: 0.4;
    z-index: 2;
}

@media (max-width: 480px) {
    .card-header-band,
    .card-body { padding-left: 1.25rem; padding-right: 1.25rem; }
    .page-title { font-size: 1.45rem; }
    .features { grid-template-columns: 1fr; }
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: right;
        padding: 0.75rem 1rem;
    }
    .feature-icon { margin-bottom: 0; font-size: 1.25rem; }
}
