/* ============================================================
 *  المتغيرات العامة
 *  ============================================================ */
:root {
    --background: url('https://www0abdb-oss.codeberg.page/dec.jpg');
    --text: #fff;
    --primary: #444444;
    --secondary: #444444;
    --green: #4CAF50;
    --green-glow: rgba(76, 175, 80, 0.3);
}

/* ============================================================
 *  الإعدادات الأساسية
 *  ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text);
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    min-height: 100vh;
    padding: 10px 40px 20px 40px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background) no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -1;
}

/* ============================================================
 *  HEADER
 *  ============================================================ */
.logo-container {
    text-align: center;
    padding-top: 20px;
}

.logo {
    max-height: 80px;
    width: auto;
}

header {

    padding: 10px 20px 20px 20px;
    text-align: center;
}

header nav {
    display: inline-block;
    background: #333;
    border-radius: 4px;
}

header nav a {
    color: var(--text);
    text-decoration: none;
    padding: 7px 12px;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

header nav a:hover {
    background-color: #4b4b4b;
}

/* ============================================================
 *  MAIN
 *  ============================================================ */
main {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px 30px;
    gap: 30px;
}

/* ============================================================
 *  CONTENT WRAPPER
 *  ============================================================ */
.content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
    width: 100%;
}

/* ============================================================
 *  INFO CARD
 *  ============================================================ */
.info-card {
    flex: 0 0 320px;
    background-color: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.info-card:hover {
    border-color: rgba(76, 175, 80, 0.2);
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    margin-bottom: 12px;
    color: #b0b0b0;
}

/* ============================================================
 *  COPY LINK
 *  ============================================================ */
.copy-link {
    display: inline-block;
    transition: transform 0.2s ease;
    padding: 5px 15px;
    border-radius: 2px;
    background: #444444;
    border: 2px solid #4b4b4b;
    margin: 5px 0;
    text-decoration: none;
}

.copy-link:hover {
    background: #4b4b4b;
    border-color: #3b3b3b;
}

.copy-link h3 {
    margin: 0;
    color: #fff;
}

/* ============================================================
 *  PLAYERS COUNT
 *  ============================================================ */
.players-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #b0b0b0;
}

.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 2%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

#playerCount {
color: var(--green);
font-weight: bold;
font-size: 20px;
}

/* ============================================================
 *  IMAGE SLIDER
 *  ============================================================ */
.image-slider {
    flex: 1;
    background-color: rgba(31, 31, 31, 0.9);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
height: 450px; /* ارتفاع ثابت */
    max-height: 70vh; /* لا يتجاوز 70% من ارتفاع الشاشة */
    min-height: 300px; /* حد أدنى */
    width: 100%;  
}

.slider-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: contain;
    display: none;
}

.slide.active {
    display: block;
}

/* أزرار التنقل */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 54, 58, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 24px;
    border-radius: 2%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}


.slider-btn:hover {
    background: #96d1db;
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: 16px;
}

.next {
    right: 16px;
}

/* النقاط */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background: var(--green);
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--green-glow);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ============================================================
 *  VIDEO SECTION
 *  ============================================================ */
.video-section {
    margin: 10px 0;
}

.video-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .green {
    color: var(--green);
}

.section-title .badge {
    background: rgba(76, 175, 80, 0.12);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 2px;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #0a0a0a;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.video-wrapper:hover {
    border-color: rgba(76, 175, 80, 0.2);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* ============================================================
 *  NOTIFICATION
 *  ============================================================ */
.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    padding: 18px 35px;
    border-radius: 2px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    border-color: rgba(76, 175, 80, 0.5);
}

.notification.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(211, 47, 47, 0.95));
    border-color: rgba(244, 67, 54, 0.5);
}

#notification-icon {
font-size: 24px;
animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================================
 *  PATIYAL (النص الطويل)
 *  ============================================================ */
.patiyal {
    background: rgba(68, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.patiyal h2 {
    color: var(--green);
    margin-bottom: 20px;
    text-align: center;
}

.patiyal p {
    line-height: 1.8;
    color: #d0d0d0;
    text-align: right;
}

.patiyal strong {
    color: #ffffff;
}

/* ============================================================
 *  FOOTER
 *  ============================================================ */
footer {
    background: var(--primary);
    padding: 20px;
    text-align: center;
}

/* ============================================================
 *  RESPONSIVE DESIGN
 *  ============================================================ */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .info-card {
        flex: 1;
        width: 100%;
    }

    .image-slider {
        min-height: 300px;
    }

    .slider-container {
        min-height: 300px;
    }

    .slide {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 16px 20px 16px;
    }

    main {
        padding: 10px 16px;
        gap: 20px;
    }

    header nav a {
        padding: 5px 8px;
        font-size: 14px;
    }

    .info-card {
        padding: 18px;
    }

    .image-slider {
        min-height: 220px;
    }

    .slider-container {
        min-height: 220px;
    }

    .slide {
        min-height: 220px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        padding: 8px;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

    .notification {
        font-size: 15px;
        padding: 14px 22px;
        width: 90%;
        top: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .patiyal {
        padding: 20px;
    }

    .patiyal p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 6px 10px 12px 10px;
    }

    main {
        padding: 6px 10px;
        gap: 14px;
    }

    .logo {
        max-height: 50px;
    }

    header nav a {
        font-size: 12px;
        padding: 4px 6px;
    }

    .image-slider {
        min-height: 160px;
    }

    .slider-container {
        min-height: 160px;
    }

    .slide {
        min-height: 160px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        padding: 4px;
    }

    .copy-link h3 {
        font-size: 16px;
    }

    .players-count {
        font-size: 14px;
    }

    .notification {
        font-size: 13px;
        padding: 10px 16px;
        width: 95%;
        top: 12px;
    }

    #notification-icon {
    font-size: 18px;
    }

    .patiyal p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ============================================================
 *  SCROLLBAR
 *  ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}
