/* ============================================
   うぃる Official Website - Premium Dark Theme
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-muted: rgba(255, 255, 255, 0.4);

    /* Accent Colors - Neon Purple/Pink Gradient */
    --color-accent-1: #a855f7;
    --color-accent-2: #ec4899;
    --color-accent-3: #6366f1;
    --gradient-primary: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(236, 72, 153, 0.4) 100%);

    /* YouTube Red */
    --color-youtube: #ff0000;
    /* X Black/White */
    --color-x: #ffffff;

    /* Typography */
    --font-main: 'Noto Sans JP', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1200px;

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-1);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-2);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
}

.nav-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: #ff0000;
}

.nav-logo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--section-padding) 1.5rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title-wrapper {
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: center;
    gap: 0.05em;
}

.title-char {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: charReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-char:nth-child(1) {
    animation-delay: 0.1s;
}

.title-char:nth-child(2) {
    animation-delay: 0.2s;
}

.title-char:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 1rem;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease 0.7s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 1s ease 0.9s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text);
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.875rem 1.75rem;
}

.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-accent-1);
}

.btn-outline svg {
    width: 1rem;
    height: 1rem;
    transition: var(--transition-fast);
}

.btn-outline:hover svg {
    transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: fadeIn 1s ease 1.2s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent-1), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Sections */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Videos Section */
.videos-section {
    background: var(--color-bg-secondary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-card.featured {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .video-card.featured {
        grid-column: span 2;
    }

    .video-card.featured .video-thumbnail {
        aspect-ratio: 21/9;
    }
}

.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.375rem 0.75rem;
    background: #ff0000;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
}

.video-thumbnail {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-muted);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.8);
    transition: var(--transition-medium);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-card:hover .play-btn {
    transform: scale(1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Playlists Section */
.playlists-grid {
    display: grid;
    gap: 1.5rem;
}

.playlist-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-medium);
}

.playlist-card:hover {
    background: var(--color-surface-hover);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(8px);
}

.playlist-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.playlist-info {
    flex: 1;
}

.playlist-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.playlist-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.playlist-arrow {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.playlist-card:hover .playlist-arrow {
    color: var(--color-accent-1);
    transform: translateX(4px);
}

/* Playlist Thumbnail Cards */
.playlists-grid.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.playlist-thumbnail-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-medium);
}

.playlist-thumbnail-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.playlist-thumbnail {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.playlist-thumbnail-card:hover .playlist-thumbnail img {
    transform: scale(1.05);
}

.playlist-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.playlist-count svg {
    width: 16px;
    height: 16px;
}

.playlist-thumbnail .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.playlist-thumbnail-card:hover .video-overlay {
    opacity: 1;
}

.playlist-thumbnail .play-btn {
    width: 56px;
    height: 56px;
}

.playlist-thumbnail-info {
    padding: 1.25rem;
}

.playlist-thumbnail-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.playlist-thumbnail-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Featured Badge (おすすめ) */
.video-badge.featured-badge {
    background: var(--gradient-primary);
}

/* Links Section */
.links-section {
    background: var(--color-bg-secondary);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition-medium);
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.link-card.youtube:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

.link-card.x:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon svg {
    width: 32px;
    height: 32px;
}

.link-card.youtube .link-icon svg {
    color: var(--color-youtube);
}

.link-card.x .link-icon svg {
    color: var(--color-x);
}

.link-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-info span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.link-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-medium);
}

.link-card.youtube .link-glow {
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

.link-card.x .link-glow {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.link-card:hover .link-glow {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Scroll Reveal Animation (will be triggered by JS) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-logo-avatar {
        width: 28px;
        height: 28px;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-card.featured {
        grid-column: span 1;
    }

    .video-card.featured .video-thumbnail {
        aspect-ratio: 16/9;
    }

    .video-title {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .video-info {
        padding: 1rem;
    }

    /* Playlists on mobile */
    .playlists-grid.thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .playlist-thumbnail-info {
        padding: 0.75rem;
    }

    .playlist-thumbnail-info h3 {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .playlist-thumbnail-info p {
        font-size: 0.7rem;
    }

    .playlist-count {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .playlist-count svg {
        width: 12px;
        height: 12px;
    }

    .playlist-thumbnail .play-btn {
        width: 40px;
        height: 40px;
    }

    .playlist-thumbnail .play-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Links on mobile */
    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-card {
        padding: 1.5rem;
    }

    /* Old playlist card */
    .playlist-card {
        flex-direction: column;
        text-align: center;
    }

    .playlist-arrow {
        display: none;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-cta {
        margin-top: 2rem;
    }

    .btn-outline {
        padding: 0.75rem 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .playlists-grid.thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .playlist-thumbnail-info h3 {
        font-size: 0.9rem;
    }

    .video-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .link-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .link-icon {
        width: 56px;
        height: 56px;
    }

    .link-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}