﻿/*
Theme Name: AI Beautiful Craft
Theme URI: https://ai-beautiful-craft.com/
Author: Antigravity
Author URI: https://ai-beautiful-craft.com/
Description: A premium, cinema-style WordPress theme for showcasing AI artwork.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-beautiful-craft
*/

:root {
    --primary-pink: #ff85a1;
    --gold: #d4af37;
    --diamond: #e0faff;
    --bg-white: #fdfafb;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans JP', 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: #4a4a4a;
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling */
    display: flex;
    flex-direction: column;
}

/* Background Scene */
.background-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #fff0f5 50%, #fff 100%);
    z-index: -2;
    /* Set to -2 to stay behind video */
    transition: opacity 1s ease;
}

.glow-orb {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 133, 161, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.site-header {
    padding: 3rem 1rem;
    text-align: center;
    z-index: 10;
}

.logo-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    /* Tighter spacing for cohesion */
    margin-bottom: 0.2rem;

    /* Gold Gradient Text */
    background: linear-gradient(to bottom, #d4af37 0%, #fcf6ba 50%, #b38728 100%);
    background-size: 100%;

    -webkit-background-clip: text !important;
    -moz-background-clip: text !important;
    background-clip: text !important;

    color: transparent;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));

    position: relative;
    display: inline-block;

    /* Add a solid border-like effect using text-shadow if needed, or keep clean */
}

.title-craft-kerning {
    letter-spacing: -0.1em;
    /* Tighten kerning for Katakana */
    margin-left: -0.05em;
    /* Slight visual adjustment */
}

/* Cleanup unused classes */

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.4rem;
    color: var(--primary-pink);
    font-weight: 700;
}

/* Hand Layout Removed */

/* Card Styles Removed */

/* Layout Toggle Removed */

/* Video Background */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
    opacity: 1;
    visibility: visible;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transition: opacity 0.8s ease;
    will-change: opacity;
}

/* メイン動画レイヤー */
.bg-video.main {
    object-fit: contain;
    z-index: 2;
    transform: translate(-50%, -50%) scale(1.1);
    mask-image: radial-gradient(circle, black 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, black 20%, transparent 85%);
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.6));
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(1px);
    z-index: 3;
}

/* Cinema Layout Styles (Desktop Default) */
@media (min-width: 1025px) {
    .cinema-list {
        width: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        /* Moved 50px further right: 420px - 50px = 370px from center */
        padding: 0 0 0 calc(50% - 370px);
        z-index: 10;
        height: 100%;
        overflow: hidden;
    }

    .side-nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        height: 100%;
    }

    .cinema-item {
        text-decoration: none;
        color: white;
        display: flex;
        flex-direction: column;
        transition: var(--transition);
        opacity: 0.6;
        transform: translateX(0);
        cursor: pointer;
    }

    .cinema-item:hover {
        opacity: 1;
        transform: translateX(20px);
    }

    .item-number {
        font-family: var(--font-heading);
        font-size: 0.9rem;
        color: var(--primary-pink);
        margin-bottom: 0.3rem;
    }

    .item-name {
        font-family: var(--font-heading);
        font-size: 3rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 2px;
    }

    .item-platform {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-top: 0.3rem;
    }

    .cinema-info-box {
        margin-left: auto;
        max-width: 300px;
        text-align: right;
        color: white;
        display: none;
    }
}

/* Header Adjustments */
.site-header .logo-text,
.site-header .subtitle {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments (3D Roll UI) */
@media (max-width: 1024px) {
    .site-header {
        padding: 1rem;
        text-align: left;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
        pointer-events: none;
    }

    .logo-text {
        font-size: 2rem;
        /* Direct size adjustment */
        transform: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .subtitle {
        display: none;
    }

    /* Optimize Mobile Performance: Hide Heavy Ambient Video */
    .bg-video.ambient {
        display: none !important;
    }

    /* 3D Roll Container */
    .cinema-list {
        position: fixed;
        bottom: 12vh;
        left: 0;
        width: 85%;
        /* 蟷・ｒ蠎・￡繧・*/
        height: 45vh;
        /* 鬮倥＆繧貞ｺ・￡繧・*/
        padding: 0;
        display: block;
        /* Flex隗｣髯､ */
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;

        /* 荳贋ｸ九ヵ繧ｧ繝ｼ繝峨い繧ｦ繝医・繧ｹ繧ｯ・亥・遲呈─繧貞・縺呻ｼ・*/
        mask-image: linear-gradient(to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%);

        /* 3D Perspective */
        perspective: 1000px;
        perspective-origin: left center;
        z-index: 20;
    }

    /* Hide scrollbar */
    .cinema-list::-webkit-scrollbar {
        display: none;
    }

    .cinema-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .side-nav {
        gap: 0;
        width: 100%;
        padding: 17vh 0;
        /* 繝代ョ繧｣繝ｳ繧ｰ隱ｿ謨ｴ */
        /* 荳贋ｸ九・繝代ョ繧｣繝ｳ繧ｰ縺ｧ繧ｹ繧ｯ繝ｭ繝ｼ繝ｫ菴吝慍繧剃ｽ懊ｋ */
        display: block;
    }

    .cinema-item {
        text-decoration: none;
        color: white;
        height: 14vh;
        /* 繧｢繧､繝・Β鬮倥＆繧貞､ｧ縺阪￥ */
        /* 1繧｢繧､繝・Β縺ｮ鬮倥＆ */
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        /* 邵ｦ荳ｦ縺ｳ */
        justify-content: center;
        padding-left: 20px;

        /* Default state (Not active) */
        opacity: 0.4;
        transform: scale(0.8) translateX(-10px) rotateX(20deg);
        transform-origin: left center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Active State (Center of Roll) */
    .cinema-item.active-roll {
        opacity: 1;
        transform: scale(1.15) translateX(15px) rotateX(0deg);
        /* 諡｡螟ｧ */
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 133, 161, 0.8);
    }

    .item-number {
        font-family: var(--font-heading);
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0;
    }

    .item-name {
        font-family: var(--font-heading);
        font-size: 2.4rem;
        /* 繝輔か繝ｳ繝医し繧､繧ｺ螟ｧ縺阪￥ */
        font-weight: 700;
        line-height: 1;
        letter-spacing: 2px;
    }

    .item-platform {
        display: block;
        /* 陦ｨ遉ｺ縺吶ｋ */
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--primary-pink);
        margin-top: 5px;
    }

    .cinema-info-box {
        display: none;
    }

    footer {
        display: none;
    }

    /* Scroll Indicators */
    /* Scroll Indicators via Pseudo-elements on Active Item */
    .cinema-item {
        position: relative;
        /* Ensure pseudo-elements position relative to item */
    }

    .cinema-item.active-roll::before,
    .cinema-item.active-roll::after {
        content: '';
        position: absolute;
        left: 40px;
        /* Align with text padding */
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;

        /* Animation with Delay */
        opacity: 0;
        /* Hidden initially */
        animation: blink 1.5s infinite;
        animation-delay: 0.3s;
        /* Wait 0.3s before appearing */

        z-index: 20;
        pointer-events: none;
    }

    /* Up Arrow */
    .cinema-item.active-roll::before {
        top: 2px;
        /* Even tighter: slightly overlapping/touching padding */
        border-bottom: 12px solid rgba(255, 255, 255, 0.9);
        transform: scale(0.87);
        /* Counteract parent's scale(1.15) */
    }

    /* Down Arrow */
    .cinema-item.active-roll::after {
        bottom: -5px;
        /* Brought up closer */
        border-top: 12px solid rgba(255, 255, 255, 0.9);
        transform: scale(0.87);
        /* Counteract parent's scale(1.15) */
    }

    /* Hide arrows at edges */
    .cinema-item:first-child.active-roll::before {
        display: none;
    }

    .cinema-item:last-child.active-roll::after {
        display: none;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    margin-top: auto;
}