/* ===================================================================
   PROJECT PAGES - CSS
   Styles for individual project detail pages
   =================================================================== */

/* ===== PROJECT CARDS ===== */
.project-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== EDITOR BUTTON ===== */
.editor-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 14px 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.editor-btn svg {
    color: var(--accent-light);
    transition: transform 0.3s ease;
}

.editor-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    background: rgba(76, 81, 191, 0.1); /* Subtle purple tint */
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.2);
    color: var(--accent-light);
}

.editor-btn:hover svg {
    transform: translate(2px, -2px);
    color: var(--accent-light);
}

/* Active state for a "pressed" feel */
.editor-btn:active {
    transform: translateY(-2px);
}

/* ===== VIDEO WRAPPER ===== */
.video-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
}

.video-container {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-container video {
    width: 100%;
    display: block;
    outline: none;
}

/* Subtle violet glow on the edges */
.video-container:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.15);
}

.video-caption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Customizing the video controls (for supported browsers) */
video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(3, 5, 9, 0.9)) !important;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-current-time-display {
    filter: sepia(100%) saturate(500%) hue-rotate(220deg); /* Shifts color toward your violet accent */
}


/* ===== WEB EMBED CONTAINER ===== */
.web-embed-container {
    margin-top: 30px;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease;
}

/* Make the iframe fill the container */
.web-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white; /* Helpful if the old site has transparency */
}

/* Hover effect to match your video previews */
.web-embed-container:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.15);
}

/* ===== ISENCRAFT LEGACY SITE STYLES ===== */
.legacy-site-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.legacy-site-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Dark overlay with text */
.embed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(3, 5, 9, 0.4);
    color: white;
    transition: background 0.3s ease;
}

.embed-overlay span {
    padding: 15px 30px;
    background: var(--accent-color);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover Effects */
.legacy-site-link:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.legacy-site-link:hover .embed-overlay {
    background: rgba(3, 5, 9, 0.2);
}

.legacy-site-link:hover .embed-overlay span {
    background: var(--accent-light);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .web-embed-container {
        height: 350px;
    }
}