/* =============================================================================
   Footer Styles for Story Manager
   Comprehensive footer styling with consistent design across all pages
   ============================================================================= */

/* Main Footer Container */
.storymanager-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin-top: 25px; /* Requested 25px top margin */
    color: var(--text-dark, #212529);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer Content Area */
.footer-content {
    padding: 2rem 0 1rem 0;
    background-color: transparent;
}

/* Footer Sections */
.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h5 {
    color: var(--brand-blue, #005fcc);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-section h5 i {
    margin-right: 0.5rem;
    color: var(--brand-blue, #005fcc);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-dark, #212529);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Contact Information */
.contact-info {
    margin-bottom: 1rem;
}

.contact-info a {
    display: flex;
    align-items: center;
    color: var(--text-dark, #212529);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.contact-info a:hover {
    color: var(--brand-blue, #005fcc);
    text-decoration: none;
}

.contact-info a i {
    margin-right: 0.5rem;
    color: var(--brand-blue, #005fcc);
    width: 1rem;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-blue, #005fcc);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--brand-blue-hover, #004499);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-dark, #212529);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--brand-blue, #005fcc);
    text-decoration: none;
}

/* Copyright Section */
.copyright-section {
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    text-align: center;
}

.copyright-section p {
    margin: 0;
    color: var(--text-dark, #212529);
    font-size: 0.8rem;
}

.copyright-section a {
    color: var(--brand-blue, #005fcc);
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright-section a:hover {
    color: var(--brand-blue-hover, #004499);
    text-decoration: underline;
}

/* =============================================================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================================================= */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .footer-content {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .contact-info a {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
    
    .copyright-section {
        padding: 1.25rem 0;
    }
    
    .copyright-section p {
        font-size: 0.85rem;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .footer-content {
        padding: 2.25rem 0 1.25rem 0;
    }
    
    .footer-section h5 {
        font-size: 1.05rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
    }
    
    .contact-info a {
        font-size: 0.875rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .social-links a {
        width: 2.625rem;
        height: 2.625rem;
        font-size: 1.05rem;
    }
    
    .copyright-section {
        padding: 1.125rem 0;
    }
    
    .copyright-section p {
        font-size: 0.825rem;
    }
}

/* Large Tablet (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .footer-content {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-section h5 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
    }
    
    .contact-info a {
        font-size: 0.875rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .social-links a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .copyright-section {
        padding: 1rem 0;
    }
    
    .copyright-section p {
        font-size: 0.8rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .storymanager-footer {
        margin-top: 22px;
    }
    
    .footer-content {
        padding: 1.75rem 0 1rem 0;
    }
    
    .footer-section {
        margin-bottom: 1.25rem;
    }
    
    .footer-section h5 {
        font-size: 0.95rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .contact-info a {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 0.875rem;
    }
    
    .social-links a {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }
    
    .copyright-section {
        padding: 0.875rem 0;
    }
    
    .copyright-section p {
        font-size: 0.75rem;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .storymanager-footer {
        margin-top: 20px;
    }
    
    .footer-content {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-section h5 {
        font-size: 0.9rem;
    }
    
    .footer-section p {
        font-size: 0.75rem;
    }
    
    .contact-info a {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    .copyright-section {
        padding: 0.75rem 0;
    }
    
    .copyright-section p {
        font-size: 0.7rem;
    }
}

/* Mobile Small (320px to 575px) */
@media (max-width: 575px) {
    .storymanager-footer {
        margin-top: 18px;
    }
    
    .footer-content {
        padding: 1.25rem 0 0.875rem 0;
    }
    
    .footer-section {
        margin-bottom: 0.875rem;
    }
    
    .footer-section h5 {
        font-size: 0.85rem;
    }
    
    .footer-section p {
        font-size: 0.7rem;
    }
    
    .contact-info a {
        font-size: 0.7rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }
    
    .social-links {
        gap: 0.625rem;
    }
    
    .social-links a {
        width: 1.875rem;
        height: 1.875rem;
        font-size: 0.75rem;
    }
    
    .copyright-section {
        padding: 0.625rem 0;
    }
    
    .copyright-section p {
        font-size: 0.65rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .storymanager-footer {
        margin-top: 15px;
    }
    
    .footer-content {
        padding: 1rem 0 0.75rem 0;
    }
    
    .footer-section {
        margin-bottom: 0.75rem;
    }
    
    .footer-section h5 {
        font-size: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.65rem;
    }
    
    .contact-info a {
        font-size: 0.65rem;
    }
    
    .footer-links a {
        font-size: 0.65rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-links a {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.7rem;
    }
    
    .copyright-section {
        padding: 0.5rem 0;
    }
    
    .copyright-section p {
        font-size: 0.6rem;
    }
}

/* =============================================================================
   DARK THEME SUPPORT
   ============================================================================= */

body.theme-dark .storymanager-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top-color: #4a5f7a;
    color: #ecf0f1;
}

body.theme-dark .footer-section h5 {
    color: #4dabf7;
}

body.theme-dark .footer-section h5 i {
    color: #4dabf7;
}

body.theme-dark .footer-section p {
    color: #ecf0f1;
}

body.theme-dark .contact-info a {
    color: #ecf0f1;
}

body.theme-dark .contact-info a:hover {
    color: #4dabf7;
}

body.theme-dark .contact-info a i {
    color: #4dabf7;
}

body.theme-dark .social-links a {
    background-color: #4dabf7;
    color: #ffffff;
}

body.theme-dark .social-links a:hover {
    background-color: #74c0fc;
    color: #ffffff;
}

body.theme-dark .footer-links a {
    color: #ecf0f1;
}

body.theme-dark .footer-links a:hover {
    color: #4dabf7;
}

body.theme-dark .copyright-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-top-color: #4a5f7a;
}

body.theme-dark .copyright-section p {
    color: #ecf0f1;
}

body.theme-dark .copyright-section a {
    color: #4dabf7;
}

body.theme-dark .copyright-section a:hover {
    color: #74c0fc;
}

/* =============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================= */

@media (prefers-contrast: high) {
    .storymanager-footer {
        border-top-width: 2px;
    }
    
    .footer-section h5 {
        text-decoration: underline;
    }
    
    .footer-links a {
        text-decoration: underline;
    }
    
    .footer-links a:hover {
        text-decoration: none;
    }
    
    .social-links a {
        border: 2px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-links a {
        transition: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
    
    .footer-links a,
    .contact-info a,
    .copyright-section a {
        transition: none;
    }
}

/* =============================================================================
   FOCUS MANAGEMENT
   ============================================================================= */

.footer-links a:focus,
.contact-info a:focus,
.social-links a:focus,
.copyright-section a:focus {
    outline: 2px solid var(--brand-blue, #005fcc);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .footer-links a:focus,
    .contact-info a:focus,
    .social-links a:focus,
    .copyright-section a:focus {
        outline: 3px solid;
        outline-offset: 1px;
    }
}