/* ========================================
   CEVDET MERCAN BIOGRAPHY MODAL
   Full-screen modal with biography and filmography
   ======================================== */

/* Modal Overlay */
.cevdet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cevdet-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.cevdet-modal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* Modal Content */
.cevdet-modal-content {
    max-width: 1200px;
    width: 100%;
    background: #000;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.6s ease;
}

.cevdet-modal-overlay.active .cevdet-modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Close Button */
.cevdet-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cevdet-modal-close:hover {
    background: rgba(255, 38, 74, 0.9);
    border-color: #ff264a;
    transform: rotate(90deg);
}

.cevdet-modal-close::before,
.cevdet-modal-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
}

.cevdet-modal-close::before {
    transform: rotate(45deg);
}

.cevdet-modal-close::after {
    transform: rotate(-45deg);
}

/* Header Section */
.cevdet-modal-header {
    text-align: center;
    padding: 60px 40px 40px;
    background: linear-gradient(to bottom, #0a0a0a 0%, #000 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cevdet-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px 0;
}

.cevdet-modal-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff264a;
    margin: 0;
}

/* Divider Line */
.cevdet-modal-divider {
    width: 60px;
    height: 1px;
    background: #ff264a;
    margin: 30px auto;
}

/* Body Section */
.cevdet-modal-body {
    padding: 60px 40px;
}

/* Section */
.cevdet-section {
    margin-bottom: 60px;
}

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

/* Section Title */
.cevdet-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff264a;
}

/* Biography Text */
.cevdet-biography p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
}

.cevdet-biography p:last-child {
    margin-bottom: 0;
}

/* Filmography Grid */
.cevdet-filmography {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Film Item */
.film-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.film-item:hover {
    background: rgba(255, 38, 74, 0.1);
    border-color: rgba(255, 38, 74, 0.5);
    transform: translateY(-3px);
}

.film-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.film-meta {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.film-episodes {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    color: #ff264a;
    margin: 5px 0 0 0;
}

/* Red Productions Badge */
.film-red-badge {
    display: inline-block;
    background: #ff264a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    margin-top: 8px;
    text-transform: uppercase;
}

/* Responsive - Tablet */
@media only screen and (max-width: 995px) {
    .cevdet-modal-title {
        font-size: 42px;
    }
    
    .cevdet-modal-header {
        padding: 50px 30px 30px;
    }
    
    .cevdet-modal-body {
        padding: 50px 30px;
    }
    
    .cevdet-section-title {
        font-size: 28px;
    }
    
    .cevdet-filmography {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

/* Responsive - Mobile */
@media only screen and (max-width: 640px) {
    .cevdet-modal-container {
        padding: 60px 15px;
    }
    
    .cevdet-modal-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .cevdet-modal-title {
        font-size: 32px;
    }
    
    .cevdet-modal-subtitle {
        font-size: 14px;
    }
    
    .cevdet-modal-header {
        padding: 40px 20px 30px;
    }
    
    .cevdet-modal-body {
        padding: 40px 20px;
    }
    
    .cevdet-section {
        margin-bottom: 40px;
    }
    
    .cevdet-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .cevdet-biography p {
        font-size: 15px;
    }
    
    .cevdet-filmography {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .film-item {
        padding: 15px;
    }
}

/* Smooth Scroll */
.cevdet-modal-overlay {
    -webkit-overflow-scrolling: touch;
}

/* Body Lock */
body.cevdet-modal-open {
    overflow: hidden;
}

/* Print */
@media print {
    .cevdet-modal-overlay {
        display: none !important;
    }
}
