/* Muslim Revert Stories - Exact Clone of muslimrevertstories.com */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global title styles to match homepage titles */
h1, h2, h3 {
    font-family: 'Fugaz One', cursive;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
}

h1 { font-size: 48px; line-height: 1.0; }
h2 { font-size: 36px; line-height: 1.05; }
h3 { font-size: 28px; line-height: 1.1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation - Black with Yellow Accents */
.navbar {
    background: #000000 !important;
    padding: 20px 0;
    border-bottom: 1px solid #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

/* Site logo banner */
.site-logo-banner {
    background: #000000;
    border-bottom: 1px solid #222222;
}
.site-logo-banner .site-logo-img {
    height: 64px;
    width: auto;
    display: block;
}

/* Subtle glass + shadow when scrolling */
.navbar.sticky-top {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.85) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.navbar.sticky-top.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    border-bottom-color: #444444;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700 !important;
    text-decoration: none;
    text-transform: lowercase;
}

.navbar-brand:hover {
    color: #FFA500 !important;
}

.navbar-brand i {
    color: #FFD700;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 400;
    padding: 10px 15px;
    transition: color 0.3s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
}

.navbar-nav .nav-link.active {
    color: #FFD700 !important;
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid #FFD700;
    background: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown styling */
.dropdown-menu {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: #ffffff;
    padding: 10px 15px;
}

.dropdown-item:hover {
    background: #222222;
    color: #FFD700;
}

.dropdown-item.active {
    background: #FFD700;
    color: #000000;
}

/* Search form */
.search-form {
    position: relative;
    display: flex;
}

.search-input {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 8px 40px 8px 15px;
    border-radius: 6px;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.search-input::placeholder {
    color: #999999;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FFD700;
    padding: 5px;
}

/* User authentication buttons */
.auth-buttons .btn {
    margin: 0 5px;
    border-radius: 6px;
}

.btn-outline-primary {
    color: #FFD700;
    border-color: #FFD700;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
}

.btn-primary {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    background: #FFA500;
    border-color: #FFA500;
    color: #000000;
}

/* Warning button styles */
.btn-outline-warning {
    color: #FFD700;
    border-color: #FFD700;
    background: transparent;
}

.btn-outline-warning:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
}

.btn-warning {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-warning:hover {
    background: #FFA500;
    border-color: #FFA500;
    color: #000000;
}

/* User menu styling */
.user-menu .dropdown-toggle {
    background: #111111;
    border: 1px solid #FFD700;
    color: #FFD700;
}

.user-menu .dropdown-toggle:hover {
    background: #FFD700;
    color: #000000;
}

/* Language switcher */
.language-switcher .btn {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
}

.language-switcher .btn:hover {
    background: #222222;
    color: #FFD700;
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

/* Ensure secondary buttons are properly styled */
.btn-outline-secondary {
    border-color: #666666;
    color: #cccccc;
}

.btn-outline-secondary:hover {
    background: #666666;
    border-color: #666666;
    color: #ffffff;
}

/* Team Hope Section */
.team-hope {
    padding: 120px 0;
    text-align: left;
    background: #000000;
}

.team-hope h1 {
    font-family: 'Fugaz One', cursive;
    font-size: 72px;
    font-weight: 400;
    color: #ffffff;
    line-height: 0.9;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-align: right;
}

.team-hope .subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #bdbdbd; /* lighter gray per reference */
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 80px auto; /* centered under title */
    text-align: center;
    text-transform: none;
}

/* Ensure the content column of the hero aligns actions to the right */
.team-hope .col-md-6:last-child { text-align: right; }

/* Buttons */
.btn-minimal {
    display: inline-block;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-minimal:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Yellow Theme Buttons */
.btn-yellow {
    display: inline-block;
    background: #FFD700;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.btn-yellow:hover {
    background: #FFA500;
    color: #000000;
    border-color: #FFA500;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.4);
}

.btn-yellow:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Most Viewed Video */
.most-viewed-video {
    text-align: left;
}

.most-viewed-video h4 {
    font-family: 'Fugaz One', cursive;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: right;
}

.video-container {
    position: relative;
    width: 100%;
    background: #111111;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.video-container iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    background: #111111;
}

.video-info {
    padding: 15px;
    background: #111111;
    border-top: 1px solid #333;
}

.video-info h5 {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-info .meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-info .views {
    color: #FFD700;
    font-weight: 500;
}

/* Story Section */
.story-section {
    padding: 120px 0;
    text-align: left;
    background: #000000;
}

.story-section h2 {
    font-family: 'Fugaz One', cursive;
    font-size: 72px;
    font-weight: 400;
    color: #ffffff;
    line-height: 0.9;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-align: right;
}

.story-section .highlight {
    font-weight: 300;
    color: #FFD700;
}

.story-section p {
    font-size: 24px;
    font-weight: 300;
    color: #bdbdbd;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 80px auto; /* centered under title */
    text-align: center;
}

/* Love Islam Section */
.love-islam {
    padding: 120px 0;
    text-align: left;
    background: #000000;
}

.love-islam h2 {
    font-family: 'Fugaz One', cursive;
    font-size: 72px;
    font-weight: 400;
    color: #ffffff;
    line-height: 0.9;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-align: right;
}

.love-islam .quote {
    font-style: italic;
    font-weight: 300;
    color: #FFD700;
}

.love-islam p {
    font-size: 24px;
    font-weight: 300;
    color: #bdbdbd;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 60px auto; /* centered under title */
    text-align: center;
}

/* Align buttons consistently to the right in key sections */
.team-hope .btn-yellow { display: inline-block; }
.story-section .btn-yellow,
.love-islam .btn-yellow { display: inline-block; }
.story-section .container,
.love-islam .container { text-align: right; }

/* Quran Verse */
.quran-verse {
    padding: 120px 0;
    text-align: center;
    background: #111111;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.quran-verse blockquote {
    font-family: 'Fugaz One', cursive;
    font-size: 36px;
    font-weight: 400;
    color: #FFD700;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto; /* centered */
    font-style: italic;
    border: none;
    padding: 0;
    text-align: center;
}

.quran-verse cite {
    display: block;
    font-size: 16px;
    color: #cccccc;
    margin-top: 40px;
    font-style: normal;
    font-weight: 400;
}

/* Newsletter */
.newsletter {
    padding: 80px 0 40px 0;
    text-align: left;
    background: #000000;
}

.newsletter h3 {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 40px;
    text-transform: lowercase;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #FFD700;
    background: transparent;
    padding: 10px 0;
    font-size: 16px;
    color: #ffffff;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #666666;
}

.newsletter-form input:focus {
    border-bottom-color: #FFA500;
}

.newsletter-form button {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    text-transform: lowercase;
}

.newsletter-form button:hover {
    color: #FFA500;
}

/* Footer newsletter form override */
.footer .newsletter-form .input-group .btn {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
    font-weight: 600;
}

.footer .newsletter-form .input-group .btn:hover {
    background: #FFA500;
    border-color: #FFA500;
    color: #000000;
}

.footer .newsletter-form .input-group .btn:disabled {
    background: #666666;
    border-color: #666666;
    color: #999999;
    cursor: not-allowed;
}

.footer .newsletter-form .form-control {
    background: #111111;
    border-color: #333333;
    color: #ffffff;
}

.footer .newsletter-form .form-control:focus {
    background: #111111;
    border-color: #FFD700;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}



/* Footer Actions */
.footer-actions {
    padding: 40px 0 80px 0;
    background: #000000;
}

.footer-actions .row {
    display: flex;
    justify-content: space-between;
}

.footer-actions h4 {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: none;
}

.footer-actions a {
    color: #FFD700;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 400;
}

.footer-actions a:hover {
    color: #FFA500;
}

/* Override for btn-yellow in footer-actions */
.footer-actions .btn-yellow {
    display: inline-block;
    background: #FFD700;
    color: #000000 !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.footer-actions .btn-yellow:hover {
    background: #FFA500;
    color: #000000 !important;
    border-color: #FFA500;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.4);
}

.footer-actions .btn-yellow:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Hide unnecessary sections */
.section {
    display: none;
}

/* Video cards */
.video-card {
    margin-bottom: 60px;
    cursor: pointer;
}

.card {
    border: 1px solid #333333;
    background: #111111;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.card-header {
    background: #222222;
    border-bottom: 1px solid #333333;
    color: #ffffff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    border-color: #444444;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    background: #0b0b0b;
}

.card-body {
    padding: 1rem;
    text-align: left;
    background: #111111;
    color: #ffffff;
}

.card-title {
    font-family: 'Fugaz One', cursive;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: right;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
}

.card-title a:hover {
    color: #FFD700;
}

.card-text {
    font-size: 16px;
    font-weight: 300;
    color: #cccccc;
    line-height: 1.4;
}

/* Video overlay */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 48px;
    pointer-events: none;
}

/* Respect Bootstrap grid defaults; remove overrides that broke columns */

/* Modal */
.modal-content {
    border: none;
    border-radius: 0;
    background: #ffffff;
}

.modal-header {
    border: none;
    padding: 20px;
}

.modal-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    opacity: 1;
    color: #000000;
}

.modal-body {
    padding: 0;
}

/* Video container */
.ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer styling - Minimalistic Design */
.footer {
    background: #111111;
    color: #ffffff;
    padding: 50px 0 30px;
    border-top: 1px solid #333333;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer h5 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer h6 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #FFD700;
}

.footer .footer-links a {
    color: #cccccc;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.9rem;
}

.footer .footer-links a:hover {
    color: #FFD700;
}

.footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 16px;
    color: #cccccc;
    border: 1px solid #333333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    color: #000000;
    background: #FFD700;
    border-color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom p {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer .language-switcher .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 32px;
    font-size: 14px;
    border-radius: 50%;
    margin: 0 2px;
}

.footer .language-switcher .btn-warning {
    background: #FFD700;
    border-color: #FFD700;
    color: #000000;
}

.footer .language-switcher .btn-outline-secondary {
    border-color: #444444;
    color: #888888;
}

.footer .language-switcher .btn-outline-secondary:hover {
    background: #444444;
    border-color: #444444;
    color: #ffffff;
}

/* Language flags - kept for backward compatibility */
.language-flags .btn {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    margin: 0.25rem;
}

.language-flags .btn:hover {
    background: #222222;
    color: #FFD700;
}

.language-flags .btn.active {
    background: #FFD700;
    color: #000000;
    border-color: #FFD700;
}

/* Story meta spacing */
.story-meta .meta-item {
    display: inline-block;
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

[dir="rtl"] .story-meta .meta-item {
    margin-right: 0;
    margin-left: 2rem;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Social sharing */
.social-sharing a {
    text-decoration: none;
}

/* Story images */
.story-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .team-hope h1,
    .story-section h2,
    .love-islam h2 {
        font-size: 48px;
    }
    
    .team-hope .subtitle,
    .story-section p,
    .love-islam p {
        font-size: 18px;
    }
    
    .quran-verse blockquote {
        font-size: 24px;
    }
    
    .team-hope,
    .story-section,
    .love-islam,
    .quran-verse {
        padding: 80px 0;
    }
    
    .most-viewed-video {
        margin-bottom: 40px;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    .loading-spinner {
        height: 200px;
    }
    

    
    .footer-actions {
        padding: 30px 0 60px 0;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .story-meta .meta-item {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    [dir="rtl"] .story-meta .meta-item {
        margin-left: 0;
    }
    
    .social-sharing {
        text-align: center;
    }
    
    .social-sharing .btn {
        margin-bottom: 0.5rem;
    }
    
    .auth-buttons {
        text-align: center;
        margin-top: 1rem;
    }
    
    .user-menu {
        margin-top: 1rem;
    }
    
    .search-input {
        width: 200px;
    }
    
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .d-flex.justify-content-between.align-items-center .text-muted {
        margin-top: 0.5rem;
    }

    /* Footer mobile responsiveness */
    .footer {
        padding: 40px 0 20px;
    }

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

    .footer .footer-links a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .footer .social-links {
        margin-bottom: 20px;
    }

    .footer .social-links a {
        margin-right: 10px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        text-align: center;
    }

    .footer .language-switcher {
        text-align: center;
        margin-top: 10px;
    }

    /* Social login mobile adjustments */
    .social-login .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Social Login Styles */
.social-login {
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.social-login .btn {
    position: relative;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-login .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-login .btn-outline-danger {
    border-color: #db4437;
    color: #db4437;
}

.social-login .btn-outline-danger:hover {
    background-color: #db4437;
    border-color: #db4437;
    color: #ffffff;
}

.social-login .btn-outline-primary {
    border-color: #4267B2;
    color: #4267B2;
}

.social-login .btn-outline-primary:hover {
    background-color: #4267B2;
    border-color: #4267B2;
    color: #ffffff;
}

.social-login .btn-outline-dark {
    border-color: #000000;
    color: #000000;
}

.social-login .btn-outline-dark:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Loading state for social buttons */
.social-login .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-login .btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* New Auth Page Styles */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.logo-circle i {
    font-size: 1.75rem;
    color: #000000;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.auth-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.auth-title p {
    color: #666666;
    font-size: 1rem;
    margin: 0;
}

/* Alert Styles */
.auth-alerts {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0f9ff;
    color: #059669;
    border: 1px solid #bfdbfe;
}

/* Social Login Section */
.social-section {
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn i {
    font-size: 1.25rem;
}

.google-btn {
    background: #ffffff;
    color: #db4437;
    border: 2px solid #db4437;
}

.google-btn:hover {
    background: #db4437;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(219, 68, 55, 0.3);
}

.facebook-btn {
    background: #ffffff;
    color: #4267B2;
    border: 2px solid #4267B2;
}

.facebook-btn:hover {
    background: #4267B2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 103, 178, 0.3);
}

.apple-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.apple-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.divider-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    height: 1px;
    background: #e5e5e5;
    flex: 1;
}

.divider-text {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles */
.auth-form {
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #333333;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-input:checked {
    background: #FFD700;
    border-color: #FFD700;
}

.checkbox-label {
    color: #666666;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #FFA500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.submit-btn.loading {
    pointer-events: none;
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.spin {
    animation: spin 1s linear infinite;
}

/* Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.signup-text {
    color: #666666;
    font-size: 0.95rem;
    margin: 0;
}

.signup-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #FFA500;
}

/* Responsive Design */
@media (min-width: 768px) {
    .auth-container {
        max-width: 520px;
    }
    
    .auth-card {
        padding: 3rem;
    }
    
    .auth-title h2 {
        font-size: 2.25rem;
    }
    
    .form-input {
        padding: 1.25rem 1.25rem 1.25rem 3.25rem;
        font-size: 1.05rem;
    }
    
    .submit-btn {
        padding: 1.5rem;
        font-size: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .auth-container {
        max-width: 600px;
    }
    
    .auth-card {
        padding: 3.5rem;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
    }
    
    .logo-circle i {
        font-size: 2rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .auth-title h2 {
        font-size: 2.5rem;
    }
    
    .auth-title p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .brand-logo {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .logo-circle i {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .auth-title h2 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Register Page Specific Styles */
.terms-checkbox {
    margin-bottom: 1.5rem;
}

.terms-checkbox .checkbox-label {
    line-height: 1.5;
    font-size: 0.9rem;
    color: #666666;
}

.terms-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

.success-link {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.success-link:hover {
    color: #047857;
}

.password-mismatch {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

.password-mismatch:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .team-hope,
[dir="rtl"] .story-section,
[dir="rtl"] .love-islam,
[dir="rtl"] .newsletter {
    text-align: right;
}

[dir="rtl"] .newsletter-form {
    flex-direction: row-reverse;
}

/* Forms */
.form-control {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 6px;
}

.form-control:focus {
    background: #111111;
    border-color: #FFD700;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-control::placeholder {
    color: #666666;
}

.form-label {
    color: #ffffff;
    font-weight: 500;
}

.form-text {
    color: #999999;
}

.form-check-input {
    background: #111111;
    border: 1px solid #333333;
}

.form-check-input:checked {
    background: #FFD700;
    border-color: #FFD700;
}

.form-check-label {
    color: #ffffff;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-danger {
    background: #2d1b1b;
    color: #f8d7da;
    border: 1px solid #721c24;
}

.alert-success {
    background: #1b2d1b;
    color: #d1e7dd;
    border: 1px solid #0f5132;
}

.alert-info {
    background: #1b252d;
    color: #b6effb;
    border: 1px solid #055160;
}

/* Breadcrumb */
.breadcrumb {
    background: #111111;
    border-radius: 6px;
    padding: 15px;
}

.breadcrumb-item a {
    color: #FFD700;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #FFA500;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #cccccc;
}

.bg-light {
    background: #111111 !important;
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

.badge.bg-danger {
    background: #dc3545 !important;
}

.badge.bg-info {
    background: #0dcaf0 !important;
}

.badge.bg-success {
    background: #198754 !important;
}

.badge.bg-secondary {
    background: #333333 !important;
    color: #ffffff;
}

/* Video overlay */
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 215, 0, 0.9);
    font-size: 48px;
    pointer-events: none;
}

/* Button variants */
.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    background: #198754;
    color: #ffffff;
}

.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-info:hover {
    background: #0dcaf0;
    color: #ffffff;
}

.btn-outline-secondary {
    color: #ffffff;
    border-color: #666666;
}

.btn-outline-secondary:hover {
    background: #666666;
    color: #ffffff;
}

/* Text colors */
.text-muted {
    color: #999999 !important;
}

.text-primary {
    color: #FFD700 !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* Modal */
.modal-content {
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid #333333;
}

.modal-title {
    color: #ffffff;
}

.btn-close {
    background: none;
    border: none;
    color: #ffffff;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Tables */
.table {
    color: #ffffff;
}

.table th {
    border-top: none;
    border-bottom: 1px solid #333333;
    color: #FFD700;
}

.table td {
    border-top: 1px solid #333333;
}

/* Dashboard specific styles */
.stats-card {
    border: 1px solid #333333;
    border-radius: 8px;
    transition: transform 0.2s ease;
    background: #111111;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

.stats-card .card-body {
    background: #111111;
}

/* Story page specific styles */
.story-header {
    background: #000000;
    padding: 3rem 0;
}

.story-title {
    font-family: 'Fugaz One', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: right;
}

.story-meta {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.story-meta .meta-item a {
    color: #FFD700;
    text-decoration: underline;
}

.story-meta .meta-item a:hover {
    color: #FFA500;
}

.story-content {
    padding: 3rem 0;
    background: #000000;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

.story-text p {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.story-text h1, .story-text h2, .story-text h3,
.story-text h4, .story-text h5, .story-text h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.story-text blockquote {
    border-left: 4px solid #FFD700;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #ffffff;
    background: #111111;
    padding: 1.5rem;
    border-radius: 8px;
}

.story-excerpt {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #333333;
}

.video-description {
    border-left: 4px solid #FFD700;
    background: #111111;
    color: #ffffff;
}

.author-details .badge {
    background: #333333 !important;
    color: #ffffff;
}

.story-cta {
    border-left: 4px solid #FFD700;
    background: #111111 !important;
    color: #ffffff !important;
}

/* User actions */
.user-actions {
    padding: 1rem;
    background: #111111;
    border-radius: 8px;
    border: 1px solid #333333;
}

.favorite-btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.favorite-btn.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.favorite-btn.btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

.favorite-btn.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* Related stories section */
.related-stories {
    background: #111111 !important;
}

.related-stories h3 {
    color: #ffffff;
}

/* Navigation section */
.story-navigation {
    background: #000000 !important;
    border-top: 1px solid #333333 !important;
}

/* RTL specific overrides for new styles */
[dir="rtl"] .story-text blockquote {
    border-left: none;
    border-right: 4px solid #FFD700;
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .video-description {
    border-left: none;
    border-right: 4px solid #FFD700;
}

[dir="rtl"] .story-cta {
    border-left: none;
    border-right: 4px solid #FFD700;
} 