/**
 * Jory News Theme - Footer & Single Post Styles
 * تنسيقات الفوتر وصفحة المقال
 *
 * @package flavor-flavor-flavor
 */

/* ==========================================================================
   Professional Footer Design
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Footer Main Section */
.footer-main {
    padding: 60px 0 40px;
}

.footer-main .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer Brand */
.footer-brand {
    padding-left: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-site-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-site-title .logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.footer-site-title .logo-icon svg {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Footer Section Titles */
.footer-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-section-title .title-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Footer Menu */
.footer-links-section .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-section .footer-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links-section .footer-menu li a::before {
    content: '←';
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.footer-links-section .footer-menu li a:hover {
    color: var(--secondary-color);
    padding-right: 15px;
}

.footer-links-section .footer-menu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--secondary-color);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer Social */
.footer-social {
    margin-top: 20px;
}

.footer-social .social-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 15px;
}

.footer-social .social-links {
    display: flex;
    gap: 10px;
}

.footer-social .social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social .social-link.facebook:hover {
    background: #1877f2;
}

.footer-social .social-link.twitter:hover {
    background: #1da1f2;
}

.footer-social .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}

.footer-social .social-link.youtube:hover {
    background: #ff0000;
}

.footer-social .social-link.tiktok:hover {
    background: #000000;
}

.footer-social .social-link.telegram:hover {
    background: #0088cc;
}

/* Footer Newsletter */
.footer-newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 20px;
}

.footer-newsletter-form .newsletter-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.footer-newsletter-form .newsletter-input-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.95rem;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form button {
    background: var(--secondary-color);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background: #ff8533;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .developer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .developer-name {
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-bottom .heart-icon {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ==========================================================================
   Back to Top Button with Arrow
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.5);
}

.back-to-top svg {
    animation: arrowBounce 1.5s ease infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   Professional Single Article Design
   ========================================================================== */

.single-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Entry Header */
.single-article .entry-header {
    padding: 40px 40px 30px;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.single-article .entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

/* Post Categories */
.single-article .post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.single-article .post-categories .category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #004499);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.single-article .post-categories .category-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Entry Title */
.single-article .entry-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0 0 25px;
    position: relative;
}

.single-article .entry-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-top: 20px;
}

/* Post Meta */
.single-article .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.single-article .post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-article .post-meta span svg {
    color: var(--primary-color);
}

.single-article .post-meta a {
    color: var(--text-color);
    font-weight: 600;
}

.single-article .post-meta a:hover {
    color: var(--primary-color);
}

/* Reading Time */
.single-article .reading-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--bg-light), #e8f4fd);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 20px;
}

.single-article .reading-time svg {
    color: var(--primary-color);
}

/* Featured Image */
.single-article .post-thumbnail-wrapper {
    position: relative;
    margin: 0;
}

.single-article .post-thumbnail-wrapper img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.single-article .post-thumbnail-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
}

.single-article .thumbnail-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 15px 20px;
    background: var(--bg-light);
    margin: 0;
    font-style: italic;
}

/* Entry Content */
.single-article .entry-content {
    padding: 40px;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-color);
}

.single-article .entry-content p {
    margin-bottom: 1.75em;
}

.single-article .entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 2em 0 1em;
    padding-right: 20px;
    border-right: 4px solid var(--primary-color);
    position: relative;
}

.single-article .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1.75em 0 0.75em;
    position: relative;
    padding-right: 20px;
}

.single-article .entry-content h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.single-article .entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1.5em 0 0.5em;
}

.single-article .entry-content blockquote {
    margin: 2em 0;
    padding: 30px 35px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-right: 5px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    position: relative;
}

.single-article .entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.single-article .entry-content ul,
.single-article .entry-content ol {
    margin: 1.5em 0;
    padding-right: 30px;
}

.single-article .entry-content li {
    margin-bottom: 0.75em;
    position: relative;
}

.single-article .entry-content img {
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Entry Footer */
.single-article .entry-footer {
    padding: 30px 40px 40px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.post-tags .tags-label {
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #ffffff;
    color: var(--text-color);
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.share-label {
    font-weight: 700;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.copy-link {
    background: #6c757d;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--radius);
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.author-box .author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.author-box .author-name a {
    color: var(--text-color);
}

.author-box .author-bio {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================================================
   Breaking News Mobile Fix
   ========================================================================== */

@media (max-width: 768px) {
    .breaking-news-bar {
        padding: 8px 0;
    }

    .breaking-news-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .breaking-news-label {
        width: auto;
        flex-shrink: 0;
        padding: 4px 10px;
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .breaking-news-label svg {
        width: 12px;
        height: 12px;
    }

    .breaking-news-slider {
        flex: 1;
        order: 0;
        width: auto;
        font-size: 0.85rem;
    }

    .breaking-news-nav {
        order: 0;
        flex-shrink: 0;
    }

    .breaking-news-nav button {
        padding: 3px;
    }

    .breaking-news-nav button svg {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   Mobile Menu Button Fix
   ========================================================================== */

@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 8px;
        order: -1;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        padding: 10px 15px;
        border-radius: var(--radius);
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .menu-toggle:hover .hamburger span {
        background: #ffffff;
    }

    .menu-toggle:hover .menu-toggle-text {
        color: #ffffff;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hamburger span {
        width: 22px;
        height: 3px;
        background: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle-text {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-color);
    }

    .main-navigation {
        display: none;
    }
}

/* ==========================================================================
   Footer Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .footer-main .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .footer-main .container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }

    .footer-site-title {
        justify-content: center;
    }

    .footer-section-title::after {
        right: 50%;
        transform: translateX(50%);
    }

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

    .footer-links-section .footer-menu li a {
        justify-content: center;
    }

    .footer-links-section .footer-menu li a::before {
        display: none;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }

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

/* ==========================================================================
   Single Article Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .single-article .entry-header {
        padding: 25px 20px 20px;
    }

    .single-article .entry-title {
        font-size: 1.5rem;
    }

    .single-article .entry-title::after {
        margin-top: 15px;
    }

    .single-article .entry-content {
        padding: 25px 20px;
        font-size: 1rem;
    }

    .single-article .entry-content h2 {
        font-size: 1.35rem;
    }

    .single-article .entry-content h3 {
        font-size: 1.2rem;
    }

    .single-article .entry-content blockquote {
        padding: 20px;
        font-size: 1rem;
    }

    .single-article .entry-footer {
        padding: 20px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-box .author-avatar {
        margin: 0 auto;
    }
}