/* ===== تنسيقات مخصصة للموقع ===== */
:root {
    --primary-color: #FFA500;
    --secondary-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333333;
    --text-light: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 80px; /* مساحة للناف بار الثابت */
}

/* ===== شريط التنقل الجديد ===== */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes footballBounce {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-8px) rotate(45deg) scale(1.1);
        filter: brightness(1.2);
    }
    50% {
        transform: translateY(0) rotate(90deg) scale(1);
        filter: brightness(1);
    }
    75% {
        transform: translateY(-4px) rotate(135deg) scale(1.05);
        filter: brightness(1.1);
    }
    100% {
        transform: translateY(0) rotate(180deg) scale(1);
        filter: brightness(1);
    }
}

@keyframes footballPulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        filter: brightness(1.5) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    }
    100% {
        transform: scale(1) rotate(360deg);
        filter: brightness(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
}

@keyframes textWave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(3px) rotate(-2deg);
    }
}

@keyframes colorShift {
    0% {
        color: var(--text-light);
    }
    33% {
        color: #ffcc00;
    }
    66% {
        color: #66ffcc;
    }
    100% {
        color: var(--text-light);
    }
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes navbarShrink {
    from {
        padding: 15px 0;
    }
    to {
        padding: 8px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.navbar-custom {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    animation: navbarFadeIn 0.5s ease-out;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-custom.scrolled {
    animation: navbarShrink 0.3s forwards;
}

.navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-right {
    display: flex;
    align-items: center;
    animation: menuItemFadeIn 0.5s ease-out 0.1s backwards;
}

.site-logo, .site-logo-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    padding: 5px 0;
}

.site-logo img {
    max-height: 40px;
    width: auto;
    transition: transform 0.5s ease;
}

.site-logo:hover img {
    animation: logoSpin 1s ease;
}

.football-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.football-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.8rem;
    color: #ffffff;
    animation: footballBounce 2s infinite ease-in-out;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.football-shadow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 5px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
    animation: shadowPulse 2s infinite ease-in-out;
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: translateX(-50%) scale(0.7);
        opacity: 0.4;
    }
}

.site-logo:hover .football-icon,
.site-logo-button:hover .football-icon {
    animation: footballPulse 1s infinite;
}

.site-title {
    display: inline-block;
    position: relative;
    font-weight: 700;
    vertical-align: middle;
}

/* تأثير التوهج الأساسي */
.animated-text {
    animation: textGlow 3s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* تأثير الموجة عند التحويم */
.site-logo:hover .animated-text,
.site-logo-button:hover .animated-text {
    animation: textWave 1s infinite ease-in-out;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}

/* تأثير تغيير اللون عند النقر */
.site-logo .animated-text:active,
.site-logo-button .animated-text:active {
    animation: colorShift 2s;
    transform: scale(0.95);
}

.site-logo-button {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.site-logo-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.site-logo-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.site-logo-button:hover::after {
    left: 100%;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: menuItemFadeIn 0.5s ease-out 0.2s backwards;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 10px;
    position: relative;
    animation: menuItemFadeIn 0.5s ease-out;
    animation-fill-mode: backwards;
}

.main-menu li:nth-child(1) { animation-delay: 0.2s; }
.main-menu li:nth-child(2) { animation-delay: 0.3s; }
.main-menu li:nth-child(3) { animation-delay: 0.4s; }
.main-menu li:nth-child(4) { animation-delay: 0.5s; }
.main-menu li:nth-child(5) { animation-delay: 0.6s; }
.main-menu li:nth-child(6) { animation-delay: 0.7s; }

.main-menu li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.main-menu li a i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.main-menu li a:hover i {
    transform: translateY(-3px);
}

.main-menu li.active a, .main-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: 0.3s ease;
    transform: translateX(50%);
}

.main-menu li a:hover::after,
.main-menu li.active a::after {
    width: 80%;
}

.navbar-left {
    display: flex;
    align-items: center;
    animation: menuItemFadeIn 0.5s ease-out 0.3s backwards;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn, .register-btn, .admin-btn, .logout-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.login-btn i, .register-btn i, .admin-btn i, .logout-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.login-btn:hover i, .register-btn:hover i, .admin-btn:hover i, .logout-btn:hover i {
    transform: translateY(-3px);
}

.login-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.register-btn, .logout-btn {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.admin-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.login-btn:hover, .admin-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.register-btn:hover, .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.login-btn::after, .register-btn::after, .admin-btn::after, .logout-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover::after, .register-btn:hover::after, .admin-btn:hover::after, .logout-btn:hover::after {
    left: 100%;
}

.mobile-menu-toggle {
    display: none;
    animation: menuItemFadeIn 0.5s ease-out 0.4s backwards;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--text-light);
    z-index: 1040;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.mobile-menu-header button {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-header button:hover {
    transform: rotate(90deg);
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu-items li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu-items li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-items li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-items li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-items li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-items li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-items li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-items li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-menu-items li:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu.active .mobile-menu-items li:nth-child(9) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-menu-items li:nth-child(10) { transition-delay: 0.55s; }

.mobile-menu-items li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu-items li a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mobile-menu-items li a:hover i {
    transform: translateX(-5px);
}

.mobile-menu-items li.active a, .mobile-menu-items li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    padding-right: 20px;
}

.mobile-menu-items li.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.navbar-spacer {
    height: 70px;
}

/* ===== تصميم الفوتر الموديرن ===== */
@keyframes floatUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% {
        background-position: -200px;
    }
    100% {
        background-position: 200px;
    }
}

.modern-footer {
    width: 100%;
    color: #fff;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}



/* القسم الرئيسي للفوتر */
.footer-main {
    background-color: #222;
    padding: 3rem 0 2rem;
    position: relative;
    width: 100%;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shine 3s infinite linear;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* معلومات الموقع */
.footer-info {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.footer-logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo img {
    max-height: 45px;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.site-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.site-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 15px;
    font-size: 0.9rem;
}

.site-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.social-media {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--social-color, var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-5px);
}

/* أقسام الروابط */
.footer-links-section {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.footer-links-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-links-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links-section:hover h4::after {
    width: 100%;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0;
    position: relative;
    font-size: 0.9rem;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(-10px);
}

.footer-links li a:hover::before {
    width: 100%;
}

.footer-links li a i {
    margin-left: 8px;
    color: var(--primary-color);
}

/* معلومات الاتصال */
.footer-contact {
    animation: floatUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-contact:hover h4::after {
    width: 100%;
}

.contact-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.working-hours {
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.working-hours:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.hours-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.hours-header i {
    margin-left: 10px;
    color: var(--primary-color);
}

.hours-content {
    padding-right: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* شريط الحقوق */
.footer-copyright {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.developer-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.developer-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.developer-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.developer-info a:hover {
    color: #fff;
}

.developer-info a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-section h4::after,
    .footer-contact h4::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-links-section,
    .footer-contact {
        text-align: center;
    }

    .site-description::before {
        display: none;
    }

    .social-media {
        justify-content: center;
    }
}

/* Mobile Improvements */
@media (max-width: 992px) {
    .navbar-center {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle button {
        background: transparent;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .navbar-left {
        display: none;
    }

    .newsletter-box {
        padding: 1.5rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
