/* Footer Component Styles - Amazon Style */
.footer {
    background: #232f3e;
    color: #dddddd;
    margin-top: 40px;
    font-family: "Amazon Ember", Arial, sans-serif;
}

.footer-back-to-top {
    background: #37475a;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    width: 100%;
    letter-spacing: 0.5px;
}

.footer-back-to-top:hover {
    background: #485769;
}

.footer-main {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    min-width: 0;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

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

.footer-section-item {
    margin-bottom: 6px;
    line-height: 1.3;
}

.footer-section-link {
    color: #dddddd;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    transition: color 0.15s ease;
    display: block;
    padding: 2px 0;
}

.footer-section-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Achievement Section Styles */
.footer-section-icon {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.achievement-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(58, 69, 83, 0.3);
    transition: all 0.3s ease;
}

.achievement-item:last-child {
    border-bottom: none;
}

.achievement-item:hover {
    background: rgba(55, 71, 90, 0.3);
    padding-left: 8px;
    border-radius: 4px;
}

.achievement-badge {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.achievement-text {
    display: block;
    font-size: 13px;
    color: #dddddd;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.4;
}

.achievement-detail {
    display: block;
    font-size: 11px;
    color: #999999;
    font-style: italic;
    line-height: 1.3;
}

/* Achievement Type Specific Colors */
.achievement-item.winner .achievement-badge {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.achievement-item.runner-up .achievement-badge {
    color: #C0C0C0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.3);
}

.achievement-item.third .achievement-badge {
    color: #CD7F32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

.achievement-item.top-ten .achievement-badge {
    color: #4A90E2;
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.achievement-item.top-performer .achievement-badge.highlight {
    color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    animation: pulse-glow 2s infinite;
}

.achievement-item.global-rank .achievement-badge {
    color: #28A745;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.achievement-item.rating .achievement-badge {
    color: #FFC107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.achievement-item.publication .achievement-badge {
    color: #6F42C1;
    text-shadow: 0 0 8px rgba(111, 66, 193, 0.3);
}

.achievement-item.instructor .achievement-badge {
    color: #17A2B8;
    text-shadow: 0 0 8px rgba(23, 162, 184, 0.3);
}

.achievement-item.python-instructor .achievement-badge {
    color: #3776AB;
    text-shadow: 0 0 8px rgba(55, 118, 171, 0.3);
}

.achievement-item.mentor .achievement-badge {
    color: #E83E8C;
    text-shadow: 0 0 8px rgba(232, 62, 140, 0.3);
}

.achievement-item.facilitator .achievement-badge {
    color: #FD7E14;
    text-shadow: 0 0 8px rgba(253, 126, 20, 0.3);
}

.achievement-item.innovation .achievement-badge {
    color: #20C997;
    text-shadow: 0 0 8px rgba(32, 201, 151, 0.3);
}

.achievement-item.research .achievement-badge {
    color: #6610F2;
    text-shadow: 0 0 8px rgba(102, 16, 242, 0.3);
}

.achievement-item.multiple-wins .achievement-badge {
    color: #DC3545;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.achievement-item.global-recognition .achievement-badge {
    color: #007BFF;
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Pulse animation for highlight badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    }
}

.footer-divider {
    border: none;
    border-top: 1px solid #3a4553;
    margin: 40px 0 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px 20px;
    flex-wrap: wrap;
    background: #131a22;
}

.footer-logo {
    height: 31px;
    width: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.footer-bottom-link {
    color: #dddddd;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    padding: 5px 0;
    transition: color 0.15s ease;
}

.footer-bottom-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 11px;
    color: #999999;
    padding: 20px;
    background: #131a22;
    border-top: 1px solid #3a4553;
}

/* Social Media Section */
.footer-social {
    background: #131a22;
    padding: 20px;
    border-top: 1px solid #3a4553;
}

.footer-social-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-social-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dddddd;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.15s ease;
    min-height: 44px;
}

.footer-social-link:hover {
    color: #ffffff;
    background: #37475a;
    text-decoration: none;
}

.footer-social-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.footer-social-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        padding: 30px 15px;
        text-align: center;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    /* Hide all sections except Achievements & Awards on mobile */
    .footer-section:not(:first-child) {
        display: none;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section-link {
        font-size: 13px;
    }
    
    .footer-section-item {
        margin-bottom: 5px;
    }
    
    .footer-divider {
        margin: 30px 0 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
    }
    
    .footer-bottom-links {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-copyright {
        font-size: 10px;
        padding: 15px;
    }
    
    /* Social media mobile styles */
    .footer-social {
        padding: 15px;
    }
    
    .footer-social-content {
        padding: 0;
    }
    
    .footer-social-title {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-social-links {
        gap: 15px;
        justify-content: center;
    }
    
    .footer-social-link {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 40px;
    }
    
    .footer-social-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-back-to-top {
        padding: 12px;
        font-size: 12px;
    }
    
    .footer-main {
        padding: 20px 10px 12px;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-section-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .footer-section-link {
        font-size: 12px;
    }
    
    .footer-section-item {
        margin-bottom: 5px;
    }
    
    .footer-divider {
        margin: 20px 0 12px;
    }
    
    .footer-bottom {
        gap: 10px;
        padding-bottom: 12px;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .footer-bottom-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-bottom-link {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #3a4553;
        border-radius: 4px;
        background: #232f3e;
        transition: all 0.15s ease;
    }
    
    .footer-bottom-link:hover {
        background: #37475a;
        border-color: #565959;
    }
    
    .footer-copyright {
        font-size: 9px;
        padding: 6px 0;
        margin-top: 12px;
        line-height: 1.3;
    }
    
    /* Compact social media for small mobile */
    .footer-social {
        padding: 12px;
    }
    
    .footer-social-content {
        padding: 0;
    }
    
    .footer-social-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .footer-social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-social-link {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 36px;
        justify-content: center;
        gap: 6px;
    }
    
    .footer-social-icon {
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .footer-back-to-top {
        padding: 10px;
        font-size: 11px;
    }
    
    .footer-main {
        padding: 15px 8px 10px;
    }
    
    .footer-sections {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .footer-section-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .footer-section-link {
        font-size: 11px;
    }
    
    .footer-section-item {
        margin-bottom: 4px;
    }
    
    .footer-divider {
        margin: 15px 0 10px;
    }
    
    .footer-bottom {
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .footer-logo {
        height: 18px;
    }
    
    .footer-bottom-links {
        gap: 6px;
    }
    
    .footer-bottom-link {
        font-size: 10px;
    }
    
    .footer-copyright {
        font-size: 8px;
        padding: 5px 0;
        margin-top: 10px;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .footer-section-link {
        display: block;
        padding: 2px 0;
        min-height: 24px;
        line-height: 1.5;
    }
    
    .footer-bottom-link {
        display: inline-block;
        padding: 4px 8px;
        min-height: 32px;
        line-height: 1.5;
    }
}

/* Accordion-style footer for very small screens */
@media (max-width: 360px) {
    .footer-section {
        border-bottom: 1px solid #3a4553;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .footer-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .footer-section-title {
        cursor: pointer;
        position: relative;
        padding-right: 20px;
    }
    
    .footer-section-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 0;
        font-size: 16px;
        line-height: 1;
    }
    
    .footer-section.expanded .footer-section-title::after {
        content: '−';
    }
    
    .footer-section-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .footer-section.expanded .footer-section-list {
        max-height: 200px;
        margin-top: 8px;
    }
}
