/* ===================================
   Creators Box - Landing Page Styles
   Last Updated: 2025-12-23
   Modern Tech Grid Design - SaaS Product Aesthetic
   =================================== */

/* === CSS Variables === */
:root {
    /* Brand Colors */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: #eef2ff;
    --color-primary-dark: #3730a3;

    /* Accent Colors */
    --color-accent: #06b6d4;
    --color-accent-light: #e0f2fe;
    --color-orange: #f97316;
    --color-purple: #a855f7;
    --color-purple-light: #f3e8ff;

    /* Neutrals */
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-subtle: #f1f5f9;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows - Refined for Bento Grid */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 24px -6px rgba(79, 70, 229, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.05);

    /* Border Radius - Larger for modern feel */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-card: 14px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    /* Dot Matrix Background Pattern */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* === Hero Section === */
/* === Manifest Hero Animations (Configured in Tailwind) === */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* === Main Content === */
.main-content {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.8;
}

/* === Tools Grid === */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* === Tool Card - Bento Grid Style === */
.tool-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl);
    background: white;
    /* Subtle border for Bento Grid aesthetic */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    /* Minimal shadow by default */
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
}

.tool-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    /* Soft, spread shadow on hover */
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.tool-card:active {
    transform: translateY(-2px);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

/* Themed icon backgrounds for each tool */
.tool-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, var(--color-primary-light), #dbeafe);
    color: var(--color-primary);
}

.tool-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, var(--color-accent-light), #cffafe);
    color: var(--color-accent);
}

.tool-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, var(--color-purple-light), #fae8ff);
    color: var(--color-purple);
}

.tool-card:nth-child(4) .card-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #10b981;
}

.tool-card:nth-child(5) .card-icon {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.tool-card:nth-child(6) .card-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.tool-card:nth-child(7) .card-icon {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}


.tool-card:hover .card-icon {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.card-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.tool-card:hover .card-arrow {
    transform: translateX(4px);
}

/* === NEW Badge === */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #ff6b6b, var(--color-orange));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    }
}

/* === Features Section === */
.features {
    padding: var(--spacing-4xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    border-radius: var(--radius-xl);
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === Footer === */
.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-copy {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* === Responsive Design === */

/* Mobile (default styles above) */
@media (max-width: 767px) {
    .hero {
        padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .mobile-break {
        display: block;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .tool-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .card-icon {
        margin: 0 auto;
    }

    .card-arrow {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .tool-card:hover .card-arrow {
        transform: rotate(90deg) translateX(4px);
    }

    .card-tags {
        justify-content: center;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-2xl);
    }

    .mobile-break {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: var(--spacing-4xl) 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .main-content {
        padding: var(--spacing-4xl) 0;
    }
}

/* === Smooth Scroll === */
html {
    scroll-behavior: smooth;
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .tool-card {
        border-width: 3px;
    }
}

/* === About Creator Section === */
.about-creator {
    background-color: #f9f9f9;
    padding: var(--spacing-4xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border-subtle);
}

.about-creator-container {
    max-width: 600px;
    margin: 0 auto;
}

.creator-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    margin: 0 auto var(--spacing-md);
    border: 3px solid white;
}

.creator-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
}

.creator-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.creator-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.creator-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: white;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.creator-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Specific Brand Colors on Hover (Optional, but nice) */
.creator-link.note:hover {
    color: #41C9B4;
    border-color: #41C9B4;
}

.creator-link.x-twitter:hover {
    color: #000000;
    border-color: #000000;
}

.creator-link.github:hover {
    color: #333333;
    border-color: #333333;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .about-creator {
        padding: var(--spacing-3xl) 0;
    }
}

/* ===================================
   Dashboard Tracker Styles
   お気に入りボタンとトースト通知
   =================================== */

/* お気に入りボタン */
.dashboard-favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    font-family: var(--font-sans);
}

.dashboard-favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dashboard-favorite-btn:active {
    transform: translateY(0);
}

.dashboard-favorite-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* お気に入り済み状態 */
.dashboard-favorite-btn.is-favorite {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.dashboard-favorite-btn.is-favorite:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* トースト通知 */
.dashboard-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.dashboard-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* モバイル対応 */
@media (max-width: 767px) {
    .dashboard-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }

    .dashboard-favorite-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .dashboard-toast {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
    }
}