/* Footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 10, 30, 0.97), rgba(40, 15, 60, 0.97));
    padding: 6rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 200%;
    height: 50px;
    background: url('../images/favicon.png') repeat-x;
    animation: wave 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    transform-origin: center bottom;
    opacity: 0.1;
}

#wave1 { z-index: 4; opacity: 0.3; animation-delay: 0s; }
#wave2 { z-index: 3; opacity: 0.2; animation-delay: 2s; }
#wave3 { z-index: 2; opacity: 0.1; animation-delay: 4s; }
#wave4 { z-index: 1; opacity: 0.05; animation-delay: 6s; }

@keyframes wave {
    0% { transform: translateX(0) translateZ(0) scaleY(1) }
    50% { transform: translateX(-25%) translateZ(0) scaleY(0.8) }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1) }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    margin-left: 150px;
}

.footer-brand {
    padding-right: 2.2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(120deg, #8A2BE2, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: #8A2BE2;
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul a:hover {
    color: #8A2BE2;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 150px;
}

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

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #8A2BE2;
}

.special-link {
    position: relative;
    background: linear-gradient(90deg, #8A2BE2, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 20px;
}

.special-link i {
    font-size: 0.7em;
    margin-right: 5px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.space-btn-outline i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.space-btn-outline:hover i {
    transform: rotate(45deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 15, 45, 0.97), rgba(50, 20, 70, 0.97));
    margin: 5% auto;
    padding: 0;
    width: 70%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
    animation: modalFade 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8rem;
    background: linear-gradient(120deg, #8A2BE2, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-body h3 {
    color: #8A2BE2;
    margin: 1.5rem 0 1rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-body ul li::before {
    content: '•';
    color: #8A2BE2;
    position: absolute;
    left: 0;
}

.close-modal {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #8A2BE2;
    transform: rotate(90deg);
}

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

.footer-tmdb {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-tmdb p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tmdb-logo {
    height: 15px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    margin: 0 auto;
}

.tmdb-logo:hover {
    opacity: 1;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 15, 45, 0.97), rgba(50, 20, 70, 0.97));
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

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

.cookie-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-accept {
    background: #8A2BE2;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: #FF1493;
    transform: translateY(-2px);
}

.cookie-learn-more {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.cookie-learn-more:hover {
    color: #8A2BE2;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobil Uyumluluk */
@media screen and (max-width: 1024px) {
    .footer-content, .footer-bottom {
        margin-left: 50px;
        margin-right: 50px;
    }

    .tmdb-logo {
        margin: 0 auto;
    }
    
    .footer-tmdb {
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 4rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-left: 20px;
        margin-right: 20px;
    }

    .footer-brand {
        padding-right: 0;
        text-align: center;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-left: 20px;
        margin-right: 20px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tmdb-logo {
        margin-left: 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul a {
        display: block;
        padding: 0.5rem 0;
    }

    .footer-section ul a:hover {
        transform: none;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .cookie-learn-more {
        display: block;
        margin-top: 0.5rem;
    }
}

/* Yatay mobil cihazlar için */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .footer {
        padding: 3rem 0 1rem;
    }

    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookie-consent {
        position: static;
    }
}

/* Tablet dikey görünüm için */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Karanlık mod desteği */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: linear-gradient(135deg, rgba(15, 7, 20, 0.97), rgba(30, 10, 45, 0.97));
    }
}

/* Yüksek DPI ekranlar için */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-logo {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dokunmatik cihazlar için hover efektlerini düzenleme */
@media (hover: none) {
    .social-link:hover,
    .footer-section ul a:hover,
    .cookie-accept:hover {
        transform: none;
    }
}

/* Animasyon tercihi azaltılmış */
@media (prefers-reduced-motion: reduce) {
    .wave {
        animation: none;
    }

    .special-link i {
        animation: none;
    }

    .modal-content {
        animation: none;
    }

    .cookie-consent {
        animation: none;
    }
}