/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #4a5568;
    background-color: #fafafa;
    overflow-x: hidden;
    font-weight: 400;
}

/* Color Palette Variables */
:root {
    --primary-dark: #374151;
    --primary-medium: #6b7280;
    --primary-light: #9ca3af;
    --accent-sage: #a7b8a8;
    --accent-mint: #b8d4ba;
    --background-primary: #fafafa;
    --background-secondary: #ffffff;
    --background-tertiary: #f3f4f6;
    --text-primary: #4a5568;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #3b82f6;
    --border-medium: #d1d5db;
    --shadow-soft: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.1;
}

.logo-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
}

.logo-tagline {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.25rem;
    transition: color 0.2s;
    position: relative;
}

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

/* Add separator line between navigation items */
.nav-link:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1rem;
    background-color: #3b82f6;
    opacity: 0.4;
}

.language-selector select {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.5rem;
    background: var(--background-secondary);
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Calming Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.925rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-medium);
    border-color: var(--primary-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background: var(--background-tertiary);
    border-color: var(--accent-sage);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-soft);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.btn-outline:hover {
    background: var(--background-tertiary);
    border-color: var(--accent-sage);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px var(--shadow-soft);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px var(--shadow-soft);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.btn i {
    font-size: 1em;
}

/* Button Containers */
.quick-actions, .empty-actions, .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* Standardized Card Button Styles */
.card-btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center;
    justify-content: center;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-btn i {
    font-size: 0.875rem;
}

.card-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .card-btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.8rem !important;
        padding: 0.65rem 0.75rem !important;
    }
}

/* Wisdom Quotes Section */
.wisdom-quotes {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.quote-card {
    background: var(--background-secondary) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    border-left: 4px solid var(--primary) !important;
    margin: 2rem auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
}

.quote-card blockquote {
    margin: 0 !important;
    font-style: italic !important;
    font-size: 1.125rem !important;
    color: var(--text-primary) !important;
    line-height: 1.6 !important;
}

.quote-card cite {
    display: block !important;
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    font-style: normal !important;
}

/* Card-Style Action Components */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.action-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-soft);
    display: block;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--accent-sage);
}

.action-card-icon {
    font-size: 2.5rem;
    color: var(--accent-sage);
    margin-bottom: 1rem;
    display: block;
}

.action-card h3 {
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.action-card .btn {
    margin: 0;
    box-shadow: none;
}


/* Compact card variant for smaller sections */
.action-card.compact {
    padding: 1.5rem;
}

.action-card.compact .action-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.action-card.compact h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.action-card.compact p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Mobile Responsive for Action Cards */
@media (max-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 2rem auto;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .action-card.compact {
        padding: 1.25rem;
    }
    
    .action-card-icon {
        font-size: 2rem;
    }
    
    .action-card.compact .action-card-icon {
        font-size: 1.75rem;
    }
}

/* Tablet Portrait Mode - 2 columns centered */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 1.25rem;
        margin: 2rem auto;
    }
}

/* Tablet Landscape Mode - 3 columns centered */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .action-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 750px;
        gap: 1rem;
        margin: 2rem auto;
    }
    
    .action-card {
        padding: 1.5rem;
    }
}

/* Large screens - ensure proper centering */
@media (min-width: 1025px) {
    .action-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        gap: 1.5rem;
        margin: 2rem auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .action-cards {
        gap: 0.75rem;
        max-width: 350px;
        margin: 1.5rem auto;
    }
    
    .action-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .action-card h3 {
        font-size: 1.125rem;
    }
    
    .action-card p {
        font-size: 0.875rem;
    }
}

/* Mobile landscape mode - slightly wider cards */
@media (max-width: 768px) and (orientation: landscape) {
    .action-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 1.5rem auto;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.25rem 1.5rem;
    }
}

/* Very small mobile landscape */
@media (max-width: 480px) and (orientation: landscape) {
    .action-cards {
        max-width: 400px;
        gap: 0.75rem;
        margin: 1rem auto;
    }
    
    .action-card {
        padding: 1rem 1.25rem;
    }
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background: var(--background-secondary);
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #262627;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.highlight {
    color: #262627;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #525356;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.125rem;
    color: #76787b;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 2rem;
}

.streak-display {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #262627;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    max-width: 200px;
    margin: 0 auto;
}

.streak-icon {
    font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
    margin-top: 3rem;
}

.sample-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    max-width: 200px;
    text-align: left;
    transform: rotate(-2deg);
    transition: all 0.2s ease;
}

.sample-card:nth-child(2) {
    transform: rotate(1deg);
    margin-top: 1rem;
}

.sample-card:nth-child(3) {
    transform: rotate(-1deg);
    margin-top: 0.5rem;
}

.sample-card:hover {
    transform: rotate(0deg) translateY(-4px);
    border-color: #262627;
    box-shadow: 0 4px 12px rgba(38, 38, 39, 0.15);
}

.sample-card h3 {
    color: var(--accent-sage);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sample-card p {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

/* Card Form Section */
.card-form-section {
    padding: 4rem 0;
    background: white;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a202c;
}

.card-form {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 100px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.char-counter {
    text-align: right;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #a0aec0;
}

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

.rate-limit-info {
    text-align: center;
    color: #718096;
}

.info-icon {
    margin-right: 0.25rem;
}

/* Features Section */
.features {
    padding: 3rem 0;
    background: var(--background-tertiary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.feature {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-2px);
    border-color: #262627;
    box-shadow: 0 4px 12px rgba(38, 38, 39, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon svg {
    color: #262627;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.feature:hover .feature-icon svg {
    color: #525356;
    transform: scale(1.05);
}

.feature h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.feature p {
    color: #718096;
    margin: 0;
}

/* Trust Section */
.trust-section {
    padding: 3rem 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
    justify-content: center;
}

.trust-item {
    text-align: center;
    padding: 2rem;
}

.trust-item h3 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.trust-item p {
    color: #718096;
    margin-bottom: 1rem;
}

.trust-link {
    color: var(--accent-sage);
    text-decoration: none;
    font-weight: 600;
}

.trust-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid #3b82f6;
}

.footer .container {
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.footer-contact {
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* GDPR Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px var(--shadow-medium);
    border-top: 1px solid #3b82f6;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.consent-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.consent-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.consent-link {
    color: #63b3ed;
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.loading-overlay p {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    opacity: 0.9;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--background-tertiary);
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.2s ease-in-out infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% { 
        transform: rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg);
        opacity: 0.8;
    }
}

/* Spinning animation for Bootstrap icons */
.spinning {
    animation: spin 1.2s ease-in-out infinite;
    transform-origin: center;
}

/* Enhanced button loading state */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .bi-arrow-clockwise {
    font-size: 1rem;
    color: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #fc8181;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 1000;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .logo {
        gap: 0.125rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-tagline {
        font-size: 0.75rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.6875rem;
    }
    
    /* Adjust separator for mobile */
    .nav-link:not(:last-child)::after {
        right: -0.125rem;
        height: 0.75rem;
    }
    
    .sample-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .sample-card {
        max-width: 280px;
        margin-top: 0 !important;
        transform: none !important;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 2rem auto 0 auto;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .wisdom-quotes {
        max-width: 95% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    .quote-card {
        margin: 1.5rem auto !important;
        padding: 1.5rem !important;
    }
    
    .footer .container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        justify-content: center;
    }
    
    .footer-info {
        text-align: center;
        gap: 0.4rem;
    }
    
    .footer-time,
    .footer-copyright {
        font-size: 0.875rem;
    }
    
    .consent-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    .card-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-tagline {
        font-size: 0.9375rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .trust-section {
        padding: 3rem 0;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: white;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: white;
        border: 2px solid #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .sample-card {
        transform: none !important;
    }
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.text-section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.text-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.text-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Privacy Button Styles */
.privacy-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Privacy toggle button styling */
.privacy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.privacy-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.privacy-toggle i {
    font-size: 0.875rem;
}

.privacy-toggle .privacy-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Lock icon specific styling */
.privacy-toggle .bi-lock {
    color: #ef4444;
}

.privacy-toggle .bi-unlock {
    color: #10b981;
}

/* Privacy toggle button states */
.privacy-toggle[data-is-public="false"] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.privacy-toggle[data-is-public="false"]:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.privacy-toggle[data-is-public="true"] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.privacy-toggle[data-is-public="true"]:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #86efac;
    color: #0f172a;
}

.privacy-description {
    margin-left: 0;
}

.privacy-help-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
}

.privacy-help-text i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a202c;
        --text-color: #e2e8f0;
        --card-bg: #2d3748;
    }
}

/* Favorite Button Styles */
.favorite-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    color: #dc2626;
    background: #fee2e2;
    transform: scale(1.1);
}

.favorite-btn.is-favorite {
    color: #dc2626;
}

.favorite-btn.is-favorite:hover {
    background: #fee2e2;
}

.favorite-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Header Right Section */
.card-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Filter Section Updates */
.filter-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    color: #475569;
    font-weight: 500;
}

.cards-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cards-dropdown:hover {
    border-color: #cbd5e1;
}

.cards-dropdown:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#favorites-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#favorites-filter.active {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

#favorites-filter.active:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}