/* Geist Variable Font - Main site font */
@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* Full range of weights */
    font-style: normal;
    font-display: swap;
}

/* Apply Geist font to all content */
:root {
    --font-primary: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body, input, button, textarea, select, p, h1, h2, h3, h4, h5, h6, span, a, li, div {
    font-family: var(--font-primary);
}

/* Custom font declarations for signature fonts */
@font-face {
    font-family: 'Allison Tessa Oblique';
    src: url('../fonts/Allison Tessa Oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arty Signature';
    src: url('../fonts/Arty Signature.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Broetown Signature';
    src: url('../fonts/Broetown Signature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DawningofaNewDay';
    src: url('../fonts/DawningofaNewDay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jennifer Lynne';
    src: url('../fonts/Jennifer Lynne.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Across the Road';
    src: url('../fonts/Across the Road.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Asem Kandis';
    src: url('../fonts/Asem Kandis PERSONAL USE.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Auro Rumpthut';
    src: url('../fonts/Auro Rumpthut.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Autumn Chant';
    src: url('../fonts/Autumn Chant.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bestlife';
    src: url('../fonts/Bestlife.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Concetta Kalvani';
    src: url('../fonts/Concetta Kalvani Signature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Darlington';
    src: url('../fonts/Darlington Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Forget Me Not';
    src: url('../fonts/forgetmenot.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geovana';
    src: url('../fonts/Geovana.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Girl Next Door';
    src: url('../fonts/girlnextdoor.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Holligate';
    src: url('../fonts/Holligate Signature Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Honeymoon Avenue';
    src: url('../fonts/Honeymoon Avenue Script Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Learning Curve';
    src: url('../fonts/learningcurve_tt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mr De Haviland';
    src: url('../fonts/MrDeHaviland-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Prestige Signature';
    src: url('../fonts/Prestige Signature Script - Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PW Signature';
    src: url('../fonts/PWSignaturetwo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ryan Signature';
    src: url('../fonts/Ryan Signature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Simply Glamorous';
    src: url('../fonts/Simply Glamorous.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom styles */
.signature-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 4px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.signature-color-option:hover {
    transform: scale(1.1);
}

/* Controls Container */
.controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.font-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Font Grid Styles */
#fontGrid {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

#fontGrid::-webkit-scrollbar {
    width: 8px;
}

#fontGrid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#fontGrid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#fontGrid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.font-card {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.font-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.font-card.active {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.font-sample {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 10px;
    line-height: 1.2;
}

/* Font size slider styles */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

/* Toggle switch styles */
.toggle-label {
    position: relative;
    width: 40px;
    height: 24px;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-label {
    background: #3b82f6;
}

input:checked + .toggle-label::after {
    left: calc(100% - 22px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .controls-container {
        grid-template-columns: 1fr;
    }

    .control-group {
        flex-direction: column;
        align-items: stretch;
    }

    .font-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #fontSizeContainer, #boldContainer {
        width: 100%;
        justify-content: space-between;
        margin: 0.5rem 0;
    }

    input[type=range] {
        flex: 1;
        margin: 0 0.5rem;
    }
}

@media (max-width: 640px) {
    #fontGrid {
        grid-template-columns: 1fr;
    }
    
    .font-card {
        height: 60px;
    }
    
    .font-sample {
        font-size: 1.25rem !important;
    }
}

/* Generator Section Styles */
.generator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.generator-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.7);
}

.generator-title {
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.generator-subtitle {
    color: #6b7280;
    font-weight: 500;
}

.signature-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.signature-tab {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signature-tab.active {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.signature-tab.inactive {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.signature-tab.inactive:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
    border-color: #3b82f6;
}

.signature-canvas-container {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: 0 1.5rem 1.5rem;
    overflow: hidden;
}

.signature-canvas-header {
    padding: 1rem;
    background: linear-gradient(to bottom, #f9fafb 0%, rgba(249, 250, 251, 0) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.controls-container {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.color-options {
    padding: 0.75rem;
}

.color-options [data-color] {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.color-options [data-color]:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.color-options [data-color].active {
    border: 2px solid white;
    box-shadow: 0 0 0 2px #3b82f6, 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.font-controls {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.action-btn.secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.action-btn.secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.action-btn.primary {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.action-btn.primary:hover {
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(1px);
}

/* Font Input Styling */
#signatureText {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#signatureText:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Font Cards Grid */
#fontGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.font-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 140px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.font-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.font-card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Range Input */
input[type=range] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 6px;
    background: #e5e7eb;
    outline: none;
    transition: background 0.3s ease;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

/* Toggle Switch */
.toggle-label {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
    position: relative;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input:checked + .toggle-label {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

input:checked + .toggle-label::after {
    left: calc(100% - 22px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ensure responsive layout */
@media (max-width: 768px) {
    .generator-header {
        padding: 1rem;
    }
    
    .signature-canvas-container {
        margin: 0 1rem 1rem;
    }
    
    .signature-tabs {
        flex-wrap: wrap;
    }
    
    .signature-tab {
        flex-grow: 1;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        width: 100%;
    }
} 