/* This stylesheet is meant for custom styles, on top of The Peel Template */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Color Palette */
  --color-bg-primary: #1C1919;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  --color-text-primary: #FFF;
  --color-text-secondary: #D0D0D0;
  --color-text-muted: #B8B8B8;
  --color-text-label: #888;
  
  /* Typography Scale */
  --text-xs: 11px;      /* Small labels */
  --text-sm: 12px;      /* Labels */
  --text-base: 14px;    /* Body */
  --text-md: 16px;      /* Large body */
  --text-lg: 18px;      /* Small titles */
  --text-xl: 20px;      /* Titles */
  --text-2xl: 24px;     /* Large titles */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing Scale */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 40px;
  --space-2xl: 60px;
  
  /* Animation Timing */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease-out;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 한글 텍스트 폰트 사이즈 조정 */
.content .col-offset-1 p {
    font-size: 0.9em;
}

/* A.I Work 호버 텍스트 스타일 */
.ai-work-link {
    position: relative;
}

.ai-work-link .hover-text {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 11px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
    line-height: 1.2;
    pointer-events: none;
}

.ai-work-link:hover .hover-text {
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .project-description-card {
        padding: var(--space-xl) var(--space-md);
        margin-bottom: var(--space-xl);
    }
    
    .project-title {
        font-size: var(--text-lg);
    }
    
    .project-data-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .project-description-card {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .project-title {
        font-size: var(--text-md);
    }
}

/* ===== STANDARDIZED COMPONENTS ===== */

/* Project Description Card Component */
.project-description-card {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.5px;
}

.project-subtitle {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.project-description {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Project Data Component */
.project-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.project-data-item {
    margin-bottom: var(--space-md);
}

.project-data-label {
    font-size: var(--text-sm);
    color: var(--color-text-label);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-normal);
}

.project-data-value {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    font-weight: var(--font-medium);
    line-height: 1.4;
}

/* Back to Top Component */
.back-to-top-enhanced {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.back-to-top-enhanced.visible {
    opacity: 1;
    visibility: visible;
}

.top-link-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-label);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--color-bg-overlay);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.top-link-enhanced:hover {
    color: var(--color-text-primary);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* 기존 블랙 배경 처리 (하위 호환성) */
.grid.content[style*="background"] {
    background: var(--color-bg-overlay) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-2xl) var(--space-xl) !important;
}


