/* ========================================
   Rose Gold Theme - Global Base
   style.css - Reset, typography, utilities
   ======================================== */

:root {
    --tp5-gradient-primary: linear-gradient(135deg, #f7797d 0%, #fbd786 100%);
    --tp5-gradient-accent: linear-gradient(135deg, #c9796b 0%, #f7b488 100%);
    --tp5-gradient-dark: linear-gradient(180deg, #1a1216 0%, #211a1e 50%, #2a2025 100%);
    --tp5-bg-primary: #1a1216;
    --tp5-bg-secondary: #2a1f23;
    --tp5-bg-card: rgba(255, 255, 255, 0.07);
    --tp5-bg-card-hover: rgba(255, 255, 255, 0.12);
    --tp5-bg-glass: rgba(255, 255, 255, 0.1);
    --tp5-text-primary: #ffffff;
    --tp5-text-secondary: #c8b8b4;
    --tp5-text-muted: #8c7e7a;
    --tp5-accent: #f7a072;
    --tp5-accent-alt: #e8837c;
    --tp5-border: rgba(255, 255, 255, 0.1);
    --tp5-border-hover: rgba(255, 255, 255, 0.2);
    --tp5-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --tp5-shadow-hover: 0 12px 40px rgba(247, 121, 125, 0.2);
    --tp5-radius: 12px;
    --tp5-radius-sm: 8px;
    --tp5-radius-lg: 16px;
    --tp5-blur: 12px;
    --tp5-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tp5-body {
    background: var(--tp5-bg-primary);
    background-image: var(--tp5-gradient-dark);
    background-attachment: fixed;
    color: var(--tp5-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(--tp5-accent);
    text-decoration: none;
    transition: var(--tp5-transition);
}

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--tp5-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(247, 160, 114, 0.4);
    color: #fff;
}

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