/* Modern Design System - No Blue */
:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --secondary: #262626;
    --accent: #404040;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand-text:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta .btn-nav {
    background: linear-gradient(215deg, #2a2a2a 0%, #1a1a1a 40%, #000000 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 12px 18px -8px rgba(0, 0, 0, 0.4);
}

.nav-cta .btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.nav-cta .btn-nav:hover {
    background: linear-gradient(215deg, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 15px 22px -8px rgba(0, 0, 0, 0.5);
}

.nav-sign-in {
    background: #000000;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-sign-in:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.user-profile-card {
    position: relative;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.user-profile-toggle:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.credits-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000000;
    border-radius: 3px;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.credits-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.dropdown-icon {
    color: #9ca3af;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-profile-card.active .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-profile-card.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item i {
    color: #6b7280;
    font-size: 16px;
}

/* Hide mobile credits on desktop */
.mobile-credits {
    display: none;
}

/* Main Layout */
.main-wrapper {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: white;
    background-image: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 60%, white 100%),
        linear-gradient(to right, #e5e7eb 1px, transparent 1px),
        linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--gray-900);
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-blue {
    background: linear-gradient(215deg, #3a3a3a 0%, #1a1a1a 35%, #000000 70%, #000000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    filter: 
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.text-blue::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0,2 Q2.5,0 5,2 T10,2 T15,2 T20,2' fill='none' stroke='%23000000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 8px;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--gray-900);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--gray-900); }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(215deg, #2a2a2a 0%, #1a1a1a 40%, #000000 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 15px 20px -10px rgba(0, 0, 0, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(215deg, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 20px 25px -10px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: linear-gradient(215deg, #2a2a2a 0%, #1a1a1a 40%, #000000 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 12px 18px -8px rgba(0, 0, 0, 0.4);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.btn-outline:hover {
    background: linear-gradient(215deg, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 15px 22px -8px rgba(0, 0, 0, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 18px;
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: white;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card h3 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--primary);
}

.card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 14px;
    color: var(--gray-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tools Grid - for homepage and tools page */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tools-grid .tool-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tools-grid .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.tools-grid .tool-card .tool-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.tools-grid .tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tools-grid .tool-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
}

.feature-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
}

.feature-link:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.03);
}

.feature-link h3 {
    color: #000000;
}

.feature-link:hover h3 {
    color: #1a1a1a;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(215deg, #2a2a2a 0%, #1a1a1a 40%, #000000 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 12px 18px -8px rgba(0, 0, 0, 0.4);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
}

.feature p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary);
}

.info-box p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Trust Box */
.trust-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.trust-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.trust-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.trust-box p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Forms */
.signup-container {
    max-width: 800px;
    margin: 0 auto;
}

.modern-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-options {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 15px;
    color: var(--gray-700);
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

/* Footer */
.footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 15px;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 1rem;
}

.footer-badges {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-badges img {
    display: inline-block;
    vertical-align: middle;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 4px solid var(--primary);
}

.flash-success {
    border-left-color: var(--success);
}

.flash-error {
    border-left-color: var(--error);
}

.flash-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close:hover {
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Mobile profile - compact circular avatar */
    .user-profile-toggle {
        padding: 0;
        background: transparent;
        border: none;
        gap: 0;
    }
    
    .user-profile-toggle:hover {
        border-color: transparent;
        box-shadow: none;
    }
    
    .user-profile-toggle .user-info,
    .user-profile-toggle .dropdown-icon {
        display: none;
    }
    
    .user-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid #000;
    }
    
    /* Mobile dropdown shows credits */
    .user-dropdown {
        right: 0;
        min-width: 180px;
    }
    
    .user-dropdown::before {
        content: '';
        display: block;
        padding: 0.75rem 1rem 0.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .user-profile-card.active .user-dropdown {
        padding-top: 0;
    }
    
    /* Add credits display to mobile dropdown */
    .user-dropdown .mobile-credits {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-credits .credits-label {
        font-size: 11px;
        color: #6b7280;
        margin-bottom: 0.25rem;
    }
    
    .mobile-credits .progress-bar {
        width: 100%;
        height: 6px;
        background: #f3f4f6;
        border-radius: 3px;
        overflow: hidden;
        margin-bottom: 0.25rem;
    }
    
    .mobile-credits .progress-fill {
        height: 100%;
        background: #000;
        border-radius: 3px;
    }
    
    .mobile-credits .credits-text {
        font-size: 12px;
        font-weight: 600;
        color: #111827;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-form {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .feature {
    animation: fadeIn 0.5s ease-out;
}

/* Blog Page Styles */
.page-hero {
    background: linear-gradient(215deg, #2a2a2a 0%, #1a1a1a 40%, #000000 100%);
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.blog-tabs-section {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 73px;
    z-index: 90;
}

.blog-tabs {
    display: flex;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-tabs::-webkit-scrollbar {
    display: none;
}

.blog-tab {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 1rem 0;
    white-space: nowrap;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-family: inherit;
}

.blog-tab:hover {
    color: var(--gray-900);
}

.blog-tab.active {
    color: var(--gray-900);
    border-bottom-color: var(--primary);
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-header {
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Tool Pages - Common Styles */
.tool-page {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 4rem;
}

.tool-hero {
    color: #000000;
    background: #ffffff;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
}

.tool-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.tool-hero h1 i {
    margin-right: 1rem;
    opacity: 0.9;
}

.tool-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tool-container {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

/* Identifier tool container - clean flat styling */
.identifier-tool {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

/* Results section inside tool container */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.results-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.identification-content {
    line-height: 1.7;
    color: #374151;
}

.identification-content p {
    margin-bottom: 1rem;
}

.identification-content ul,
.identification-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.identification-content li {
    margin-bottom: 0.5rem;
}

/* Generic tool card styling */
.tool-card, 
.grass-identifier-tool, 
.rock-identifier-tool,
.font-generator-tool,
.analogy-generator-tool,
.logo-identifier-tool,
.aircraft-identifier-tool,
.coin-identifier-tool,
.book-cover-rater-tool,
.color-changer-tool,
.graffiti-generator-tool,
.garage-design-tool,
.monogram-generator-tool,
.mind-map-generator-tool,
.menu-generator-tool,
.jersey-generator-tool,
.alt-text-generator-tool,
.medal-generator-tool,
.campsite-generator-tool,
.cake-generator-tool,
.city-generator-tool,
.clock-generator-tool,
.crochet-generator-tool,
.cubism-generator-tool,
.mood-detector-tool,
.thumbnail-analyzer-tool,
.converter-tool,
.avif-converter-tool,
.bmp-converter-tool,
.ps-converter-tool,
.tga-ps-converter-tool,
.event-description-tool,
.opening-statement-tool,
.congratulations-tool {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.input-section input[type="text"],
.input-section textarea,
#grassDescription,
#rockDescription,
#fontText {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    display: block;
    box-sizing: border-box;
}

.input-section input[type="text"]:focus,
.input-section textarea:focus,
#grassDescription:focus,
#rockDescription:focus,
#fontText:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upload-label {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.upload-label:hover {
    background: #f9fafb;
}

.generate-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Jersey Generator specific styles */
.color-picker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.color-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 80px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-input-wrapper input[type="color"]:hover {
    border-color: #667eea;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.color-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-section select {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.input-section select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-section select:hover {
    border-color: #9ca3af;
}

.input-section small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 400;
}

.input-section input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.input-section input[type="file"]:hover {
    border-color: #667eea;
    background: #ffffff;
}

.input-section input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.jersey-results {
    margin-top: 2rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 5px solid #667eea;
}

.jersey-results h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.jersey-output {
    margin-top: 1.5rem;
}

.jersey-output img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Results sections */
.grass-results,
.rock-results,
.tool-results {
    margin-top: 2rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 5px solid #667eea;
}

.grass-results h3,
.rock-results h3,
.tool-results h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.identification-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
}

.identification-content h4 {
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.identification-content ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.identification-content li {
    margin-bottom: 0.5rem;
}

.tool-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tool-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.tool-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.tool-content ul {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.tool-content li {
    margin-bottom: 0.5rem;
}

.tool-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Tips grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.tip-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* Related links and resource cards */
.related-links,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    display: block;
}

.resource-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.resource-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: #4a5568;
    margin: 0;
}

/* Examples list for educational content */
.examples-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.example-item {
    background: #f7fafc;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    line-height: 1.6;
}

.example-item strong {
    color: #2d3748;
}

/* FAQ section */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #48bb78;
}

.faq-item h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Font generator specific styles */
.font-previews {
    display: grid;
    gap: 1.5rem;
}

.font-preview-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.font-preview-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.font-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.font-header h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.copy-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.font-display {
    font-size: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    word-break: break-word;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    /* Tool page responsive styles */
    .tool-hero {
        padding: 3rem 1.25rem 2rem;
    }
    
    .tool-hero h1 {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }
    
    .tool-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }
    
    .tool-card,
    .grass-identifier-tool,
    .rock-identifier-tool,
    .font-generator-tool,
    .analogy-generator-tool,
    .logo-identifier-tool,
    .aircraft-identifier-tool,
    .coin-identifier-tool,
    .book-cover-rater-tool,
    .color-changer-tool,
    .graffiti-generator-tool,
    .garage-design-tool,
    .monogram-generator-tool,
    .mind-map-generator-tool,
    .menu-generator-tool,
    .jersey-generator-tool,
    .alt-text-generator-tool,
    .medal-generator-tool,
    .campsite-generator-tool,
    .cake-generator-tool,
    .city-generator-tool,
    .clock-generator-tool,
    .crochet-generator-tool,
    .cubism-generator-tool,
    .mood-detector-tool,
    .thumbnail-analyzer-tool,
    .converter-tool,
    .avif-converter-tool,
    .bmp-converter-tool,
.ps-converter-tool,
    .event-description-tool,
    .opening-statement-tool,
    .congratulations-tool {
        padding: 2rem 1.5rem;
        overflow: visible;
    }
    
    .tool-container {
        margin-top: -2rem;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tools grid responsive */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tools-grid .tool-card {
        padding: 1.25rem;
    }
    
    .tools-grid .tool-card .tool-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Jersey Generator mobile styles */
    .color-picker-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .color-input-wrapper input[type="color"] {
        width: 60px;
        height: 45px;
    }
    
    /* Upload button mobile styles */
    .upload-label {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .upload-section {
        margin: 0 0 1rem 0;
    }
    
    /* Converter tool mobile - ensure borders aren't clipped */
    .avif-converter-tool,
    .bmp-converter-tool,
.ps-converter-tool,
    .tga-ps-converter-tool,
    .converter-tool {
        padding: 1.5rem;
        overflow: visible;
    }
    
    .generate-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Related Articles Section */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.related-articles .article-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.related-articles .article-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(4px);
}

.related-articles .article-link i {
    color: #666;
    font-size: 1.1rem;
}

/* Related Posts Section on Blog Posts */
.related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-posts-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    display: block;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-post-card:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.related-post-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-post-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.related-post-card .read-more {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.related-post-card:hover .read-more {
    color: #000;
}

/* ===== Survey Templates Styles ===== */

.text-purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray-400);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.category-count {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.category-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-header-icon i {
    font-size: 2rem;
    color: white;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.template-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.template-icon i {
    font-size: 1.25rem;
    color: white;
}

.template-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.template-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.template-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.template-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.template-popularity {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* Templates Filter */
.templates-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #6366f1;
}

.category-filter select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    outline: none;
}

/* Template Detail */
.template-detail {
    max-width: 900px;
    margin: 0 auto;
}

.template-detail-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.template-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.template-detail-icon i {
    font-size: 2rem;
    color: white;
}

.template-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.template-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.template-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.template-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.template-actions {
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.template-preview {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
}

.template-preview h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.questions-preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.question-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.question-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
}

.question-text {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.question-type {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.option-preview {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.related-templates {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.related-templates h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* My Surveys */
.surveys-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.surveys-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.survey-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.survey-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.survey-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.survey-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.survey-status {
    font-weight: 600;
}

.survey-status.active {
    color: var(--success);
}

.survey-status.inactive {
    color: var(--gray-400);
}

.survey-status i {
    font-size: 0.5rem;
}

.survey-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    color: var(--error);
    border-color: var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

/* Survey Form Editor */
.survey-editor {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #6366f1;
}

textarea.form-control {
    resize: vertical;
}

.share-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.share-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.share-link {
    display: flex;
    gap: 0.5rem;
}

.share-link input {
    flex: 1;
    background: white;
}

.questions-section {
    margin-bottom: 2rem;
}

.questions-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.question-type-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Take Survey */
.survey-page {
    background: var(--gray-50);
    min-height: 100vh;
    padding: 3rem 2rem;
}

.survey-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.survey-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem;
}

.survey-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.survey-header .survey-description {
    opacity: 0.9;
}

.survey-form {
    padding: 2rem;
}

.survey-question {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.survey-question:last-of-type {
    border-bottom: none;
}

.question-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.survey-question .question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.rating-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rating-option {
    display: flex;
}

.rating-option input {
    display: none;
}

.rating-value {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.rating-option input:checked + .rating-value {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
}

.rating-option:hover .rating-value {
    border-color: #6366f1;
}

.rating-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.multiple-choice-input {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.choice-option input {
    display: none;
}

.choice-text {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    flex: 1;
    transition: all 0.2s;
}

.choice-option input:checked + .choice-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
}

.choice-option:hover .choice-text {
    border-color: #6366f1;
}

.text-input textarea {
    min-height: 120px;
}

.survey-submit {
    text-align: center;
    padding-top: 1rem;
}

/* Survey Complete */
.survey-complete {
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.complete-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
}

.complete-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.complete-icon i {
    font-size: 2.5rem;
    color: white;
}

.complete-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.complete-card p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.complete-message {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.complete-actions {
    margin-top: 2rem;
}

/* Responses */
.responses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.response-stats {
    display: flex;
    gap: 1rem;
}

.stat-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.responses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.response-header {
    background: var(--gray-50);
    padding: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.response-header span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.response-answers {
    padding: 1rem;
}

.answer-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-question {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.answer-value {
    color: var(--gray-900);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
}

.error-content h2 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.legal-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--gray-600);
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Template Detail Page - New Layout */
.template-detail-page {
    padding: 2rem 0;
    background: var(--gray-100);
    min-height: calc(100vh - 200px);
}

.template-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Survey Preview Column */
.survey-preview-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-mockup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.survey-mockup-content {
    padding: 2.5rem 3rem;
}

.survey-mockup-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

/* Mockup Form Styles */
.mockup-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-with-label {
    display: flex;
    flex-direction: column;
}

.input-with-label .field-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.mockup-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mockup-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mockup-input[type="date"] {
    max-width: 200px;
}

/* Mockup Questions */
.mockup-question {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.mockup-question-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

/* Radio Options */
.mockup-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mockup-radio {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.mockup-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
}

.mockup-radio input:checked + .radio-mark {
    border-color: #2563eb;
}

.mockup-radio input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
}

/* Rating Table */
.mockup-rating-table {
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.rating-header {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.rating-header span {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-align: center;
}

.rating-row {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    align-items: center;
}

.rating-label {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.rating-cell {
    display: flex;
    justify-content: center;
    padding: 0.75rem;
    cursor: pointer;
}

.rating-cell input {
    display: none;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    transition: border-color 0.2s;
}

.rating-cell input:checked + .radio-circle {
    border-color: #2563eb;
    background: #2563eb;
}

/* Text Area */
.mockup-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
}

.mockup-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Preview Tabs */
.preview-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: white;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* Template Sidebar */
.template-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.sidebar-search i {
    color: var(--gray-400);
}

.sidebar-search input {
    flex: 1;
    border: none;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: transparent;
}

.sidebar-search input:focus {
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--gray-400);
}

.sidebar-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

.sidebar-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.sidebar-breadcrumb a:hover {
    text-decoration: underline;
}

.sidebar-breadcrumb i {
    font-size: 0.625rem;
    color: var(--gray-400);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sidebar-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sidebar-cta {
    margin-bottom: 1.5rem;
}

.btn-use-template {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-use-template:hover {
    background: #1d4ed8;
}

.sidebar-section {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.sidebar-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag-blue:hover {
    background: #bfdbfe;
}

.tag-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.tag-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.tag-dark {
    background: var(--gray-800);
    color: white;
}

.survey-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-item i {
    width: 16px;
    color: var(--gray-400);
}

.show-more {
    text-align: center;
    padding-top: 1rem;
}

.show-more a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.show-more a:hover {
    color: #2563eb;
}

/* About Template Section */
.about-template {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    margin-top: 1rem;
}

.about-template h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.about-template p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-template p:last-child {
    margin-bottom: 0;
}

.about-template strong {
    color: #2563eb;
    font-weight: 600;
}

/* FAQ Section */
.template-faq {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem;
    margin-top: 1rem;
}

.template-faq h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--gray-900);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .template-layout {
        grid-template-columns: 1fr;
    }
    
    .template-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .template-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .template-stats {
        justify-content: center;
    }
    
    .survey-item {
        flex-direction: column;
    }
    
    .survey-actions {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
    
    .survey-mockup-content {
        padding: 1.5rem;
    }
    
    .rating-header,
    .rating-row {
        grid-template-columns: 80px repeat(5, 1fr);
    }
    
    .rating-header span {
        font-size: 0.625rem;
        padding: 0.5rem 0.25rem;
    }
}
