/**
 * Full-Screen Takeover Styles
 * Cinematic card expansion to full screen
 */

/* Main fullscreen container */
.fullscreen-takeover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-takeover.active {
    pointer-events: auto;
}

.fullscreen-takeover.visible {
    opacity: 1;
}

/* Background overlay */
.fullscreen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fullscreen-takeover.visible .fullscreen-background {
    opacity: 1;
}

/* Close button */
.fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8);
}

.fullscreen-takeover.visible .fullscreen-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.fullscreen-close svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.fullscreen-close:hover {
    background: rgba(255, 177, 66, 0.2);
    border-color: rgba(255, 177, 66, 0.6);
    box-shadow: 0 0 30px rgba(255, 177, 66, 0.3);
    transform: scale(1.1);
}

/* Content container */
.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.fullscreen-body {
    position: relative;
    width: 100%;
    max-width: 1400px;
}

/* Animated card */
.fullscreen-animated-card {
    position: fixed;
    background: rgba(20, 13, 18, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-takeover.visible .fullscreen-animated-card {
    opacity: 1;
}

.fullscreen-animated-card .project-info {
    margin: 0;
}

.fullscreen-animated-card .project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
        var(--color-accent-orange) 0%,
        var(--color-accent-pink) 50%,
        var(--color-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fullscreen-animated-card .project-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

.fullscreen-animated-card .project-tags {
    margin-top: 1.5rem;
}

.fullscreen-animated-card .btn-animated {
    opacity: 0;
    pointer-events: none;
}

/* Details content */
.fullscreen-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 1200px);
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fullscreen-details.visible {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg,
        var(--color-accent-orange) 0%,
        var(--color-accent-pink) 50%,
        var(--color-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fullscreen-details-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.fullscreen-details-body h3 {
    color: var(--color-text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.fullscreen-details-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.fullscreen-details-body li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.fullscreen-details-body li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-accent-gold);
    font-size: 1.2rem;
}

.fullscreen-details-body p {
    margin: 1rem 0;
}

.fullscreen-details-body strong {
    color: var(--color-accent-gold);
    font-weight: 500;
}

/* Custom scrollbar for details */
.fullscreen-details::-webkit-scrollbar {
    width: 8px;
}

.fullscreen-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.fullscreen-details::-webkit-scrollbar-thumb {
    background: rgba(255, 177, 66, 0.3);
    border-radius: 4px;
}

.fullscreen-details::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 177, 66, 0.5);
}

/* Responsive styles */
@media (max-width: 768px) {
    .fullscreen-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .fullscreen-close svg {
        width: 20px;
        height: 20px;
    }

    .fullscreen-content {
        padding: 1rem;
    }

    .fullscreen-animated-card {
        padding: 1.5rem;
    }

    .fullscreen-details {
        padding: 2rem 1.5rem;
        width: 95vw;
    }

    .fullscreen-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .fullscreen-details-body {
        font-size: 1rem;
    }

    .fullscreen-details-body h3 {
        font-size: 1.3rem;
    }
}

/* Light theme adjustments */
body[data-theme="light"] .fullscreen-background {
    background: rgba(245, 245, 250, 0.98);
}

body[data-theme="light"] .fullscreen-animated-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .fullscreen-close {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

body[data-theme="light"] .fullscreen-close svg {
    color: rgba(0, 0, 0, 0.8);
}

body[data-theme="light"] .fullscreen-close:hover {
    background: rgba(235, 157, 46, 0.3);
    border-color: rgba(235, 157, 46, 0.8);
}

/* Hide original modals */
.modal {
    display: none !important;
}
