﻿/* ========================================
   Vibrant Gradient Theme - Global Base
   style.css - Reset, typography, utilities
   ======================================== */

:root {
    --tp4-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --tp4-gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tp4-gradient-dark: linear-gradient(180deg, #0f0c29 0%, #1a1440 50%, #24243e 100%);
    --tp4-bg-primary: #0f0c29;
    --tp4-bg-secondary: #1a1440;
    --tp4-bg-card: rgba(255, 255, 255, 0.07);
    --tp4-bg-card-hover: rgba(255, 255, 255, 0.12);
    --tp4-bg-glass: rgba(255, 255, 255, 0.1);
    --tp4-text-primary: #ffffff;
    --tp4-text-secondary: #b8b8d0;
    --tp4-text-muted: #8686a0;
    --tp4-accent: #f093fb;
    --tp4-accent-alt: #667eea;
    --tp4-border: rgba(255, 255, 255, 0.1);
    --tp4-border-hover: rgba(255, 255, 255, 0.2);
    --tp4-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --tp4-shadow-hover: 0 12px 40px rgba(102, 126, 234, 0.2);
    --tp4-radius: 12px;
    --tp4-radius-sm: 8px;
    --tp4-radius-lg: 16px;
    --tp4-blur: 12px;
    --tp4-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

.tp4-body {
    background: var(--tp4-bg-primary);
    background-image: var(--tp4-gradient-dark);
    background-attachment: fixed;
    color: var(--tp4-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--tp4-accent);
    text-decoration: none;
    transition: var(--tp4-transition);
}

a:hover {
    color: #fff;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--tp4-text-primary);
    font-weight: 700;
    line-height: 1.3;
}

/* Utility classes */
.only-pc { display: none; }
.only-mobile { display: block; }

@media screen and (min-width: 825px) {
    .only-pc { display: block; }
    .only-mobile { display: none; }
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Glassmorphism utility */
.tp4-glass {
    background: var(--tp4-bg-glass);
    backdrop-filter: blur(var(--tp4-blur));
    -webkit-backdrop-filter: blur(var(--tp4-blur));
    border: 1px solid var(--tp4-border);
}
