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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Simple Header - Independent Developer Style */
.simple-header {
    background: #8ACE00;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-transform: lowercase;
}

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

.nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.7;
}

.coffee-link {
    background: #000;
    color: #8ACE00 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coffee-link:hover {
    background: #333;
    transform: translateY(-1px);
    opacity: 1 !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #8ACE00;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Simple Intro Section */
.intro {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.intro h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .simple-header {
        height: 60px;
        padding: 0.5rem 0;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .intro {
        padding: 1rem 0;
    }

    .intro h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .intro p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step {
        padding: 1rem;
    }

    .content-wrapper h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .page-content {
        padding: 5rem 0 2rem;
    }

    /* Generator Mobile Layout */
    .generator-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .preview-area {
        flex: none;
        width: 100%;
        position: sticky;
        top: 10px !important;
        z-index: 10;
        background: #fff;
        order: 1;
        margin-bottom: 0.5rem;
        box-shadow: none !important;
    }

    /* Optimize mobile preview container */
    .preview-container {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .preview-container h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
    }

    .canvas-wrapper {
        margin-bottom: 0.5rem;
    }



    .preview-details {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    /* Reduce generator section padding on mobile */
    .generator-section {
        padding: 1rem 0 !important;
    }

    /* Hide download buttons on mobile - will be moved to floating */
    .download-buttons {
        display: none !important;
    }

    .controls-area {
        flex: none;
        width: 100%;
        order: 2;
    }

    .size-buttons,
    .template-buttons,
    .bg-buttons,
    .align-buttons {
        flex-direction: column;
    }

    .size-btn,
    .template-btn,
    .bg-btn,
    .align-btn {
        text-align: center;
    }

    .color-palette {
        justify-content: center;
    }

    /* Mobile Canvas Adjustments */
    .canvas-wrapper {
        padding: 0.5rem;
        min-height: 120px;
    }

    .preview-container {
        padding: 0.75rem;
        margin-bottom: 0;
    }

    .preview-container h3 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .preview-details {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }

    .download-buttons {
        gap: 0.25rem;
    }

    .btn-download {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Mobile Floating Share - Hide on mobile */
    .floating-share {
        display: none !important;
    }

    /* Mobile Floating Download Buttons */
    .floating-download {
        position: fixed;
        left: 5px;
        bottom: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .floating-btn {
        background: #8ACE00;
        color: #000;
        border: none;
        border-radius: 50px;
        padding: 12px 16px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(138, 206, 0, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        font-size: 14px;
        min-width: 80px;
        justify-content: center;
    }

    .floating-btn:hover {
        background: #7AB800;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(138, 206, 0, 0.4);
    }

    .floating-btn svg {
        width: 16px;
        height: 16px;
    }

    .share-toggle {
        padding: 10px 14px;
        font-size: 12px;
    }

    .share-text {
        display: none;
    }

    .share-item {
        width: 44px;
        height: 44px;
    }

    .share-item svg {
        width: 18px;
        height: 18px;
    }
}



/* Generator Section - Simple Style */
.generator-section {
    padding: 3rem 0;
    background: #fff;
}

.generator-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.preview-area {
    flex: 0 0 400px;
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.controls-area {
    flex: 1;
    min-width: 0;
}



.preview-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.preview-container h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.canvas-wrapper {
    background: #fff;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.canvas-wrapper canvas {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.preview-details {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-download {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #8ACE00;
    color: #000;
}

.btn-primary:hover {
    background: #7AB800;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Floating Social Share */
.floating-share {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Hide floating download on desktop */
@media (min-width: 769px) {
    .floating-download {
        display: none;
    }
}

.share-toggle {
    background: #8ACE00;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(138, 206, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.share-toggle:hover {
    background: #7AB800;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(138, 206, 0, 0.4);
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon svg {
    width: 16px;
    height: 16px;
}

.share-text {
    font-size: 12px;
    font-weight: 600;
}

.share-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-item svg {
    width: 20px;
    height: 20px;
}

.share-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-facebook {
    background: #4267b2;
    color: white;
}

.share-copy {
    background: #6c757d;
    color: white;
}

.share-copy.copied {
    background: #28a745;
}

.controls-area {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.controls-area h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Control Groups */
.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.control-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.control-group textarea:focus {
    outline: none;
    border-color: #8ACE00;
}

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

/* Button Groups */
.size-buttons,
.template-buttons,
.bg-buttons,
.align-buttons,
.effect-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn,
.template-btn,
.bg-btn,
.align-btn,
.effect-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.size-btn:hover,
.template-btn:hover,
.bg-btn:hover,
.align-btn:hover,
.effect-btn:hover {
    border-color: #8ACE00;
}

.size-btn.active,
.template-btn.active,
.bg-btn.active,
.align-btn.active,
.effect-btn.active {
    background: #8ACE00;
    border-color: #8ACE00;
    color: #000;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.color-btn.active {
    border-color: #333;
    transform: scale(1.1);
}

.custom-color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Sliders */
.slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Old layout styles (kept for mobile) */
.preview-section {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.preview-card h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.canvas-container {
    margin-bottom: 1rem;
}

.canvas-container canvas {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
}

.preview-info {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.download-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Controls Section - Horizontal Grid */
.controls-section {
    margin-bottom: 3rem;
}

.controls-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.75rem;
}



/* For smaller screens, use 2 columns */
@media (max-width: 1200px) and (min-width: 769px) {
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.control-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    height: fit-content;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.control-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}





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

    .preview-card {
        padding: 1.5rem;
    }

    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .control-card {
        padding: 1rem;
    }

    .download-section {
        flex-direction: column;
        align-items: center;
    }

    .canvas-container canvas {
        max-width: 100%;
        max-height: 300px;
    }

}

/* Input Groups and Form Elements */

.mobile-preview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.mobile-canvas-container {
    margin-bottom: 1rem;
}

.mobile-canvas-container canvas {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-preview-info {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.mobile-controls {
    margin-top: 1rem;
}

.mobile-toggle-btn {
    background: #8ACE00;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.mobile-toggle-btn:hover {
    background: #7AB800;
    transform: translateY(-1px);
}

.mobile-toggle-btn svg {
    transition: transform 0.3s ease;
}

.mobile-toggle-btn.active svg {
    transform: rotate(180deg);
}

/* Mobile Toggle Button (old) */
.mobile-toggle {
    display: none;
}

.toggle-btn {
    background: #8ACE00;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #7AB800;
    transform: translateY(-1px);
}

.toggle-btn svg {
    transition: transform 0.3s ease;
}

.toggle-btn.active svg {
    transform: rotate(180deg);
}

/* Control Panel */
.control-panel {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    display: block; /* Always show on desktop */
}

/* Desktop: Hide mobile toggle */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }

    .control-panel {
        display: block !important; /* Force show on desktop */
    }
}

.panel-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.panel-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

/* Text Input */
#text-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#text-input:focus {
    outline: none;
    border-color: #8ACE00;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.help-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Font Select */
.font-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.font-select:focus {
    outline: none;
    border-color: #8ACE00;
}

.font-select option {
    padding: 0.5rem;
}

/* Text Alignment Options */
.alignment-options {
    display: flex;
    gap: 0.25rem;
}

.align-btn {
    padding: 0.4rem 0.6rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.align-btn:hover {
    border-color: #8ACE00;
}

.align-btn.active {
    background: #8ACE00;
    color: white;
    border-color: #8ACE00;
}

/* Text Effects Options */
.effects-options {
    display: flex;
    gap: 0.5rem;
}

.effect-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.effect-btn:hover {
    border-color: #8ACE00;
}

.effect-btn.active {
    background: #8ACE00;
    color: white;
    border-color: #8ACE00;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.color-btn.active {
    border-color: #2c3e50;
    transform: scale(1.1);
}

.custom-color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

/* Sliders (Font Size & Text Blur) */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

.slider:hover {
    background: #dee2e6;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-webkit-slider-thumb:hover {
    background: #7AB800;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8ACE00;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider::-moz-range-thumb:hover {
    background: #7AB800;
    transform: scale(1.1);
}

/* Template Options */
.template-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.template-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.875rem;
}

.template-btn:hover {
    border-color: #8ACE00;
    transform: translateY(-1px);
}

.template-btn.active {
    background: #8ACE00;
    color: white;
    border-color: #8ACE00;
}

/* Background Options */
.background-options {
    display: flex;
    gap: 0.5rem;
}

.bg-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bg-btn:hover {
    border-color: #8ACE00;
}

.bg-btn.active {
    background: #8ACE00;
    color: white;
    border-color: #8ACE00;
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.8rem 0.6rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
    font-size: 0.85rem;
}

.size-btn:hover {
    border-color: #8ACE00;
    transform: translateY(-1px);
}

.size-btn.active {
    background: #8ACE00;
    color: white;
    border-color: #8ACE00;
}

.size-btn small {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Download Section */
.download-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.download-btn.primary {
    background: #8ACE00;
    color: white;
}

.download-btn.primary:hover {
    background: #7AB800;
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: #6c757d;
    color: white;
}

.download-btn.secondary:hover {
    background: #5a6268;
}

/* Preview Area */
.preview-area {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.preview-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.canvas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#preview-canvas {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.preview-info {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Content Sections */
.how-to-use,
.features,
.about {
    padding: 3rem 0;
}

.how-to-use {
    background: white;
}

.features {
    background: #f8f9fa;
}

.about {
    background: white;
}

.how-to-use h2,
.features h2,
.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #8ACE00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* About Section */
.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #495057;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    margin: 0;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8ACE00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .generator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .control-panel {
        position: static;
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .step {
        padding: 1rem 0.5rem;
    }
}



@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.25rem;
    }
    
    .panel-card,
    .preview-card {
        padding: 1rem;
    }
    
    .color-options {
        justify-content: center;
    }
}

/* Author Section - Clean Layout */
.author-section {
    background: linear-gradient(135deg, #8ACE00 0%, #7AB800 100%);
    color: white;
    text-align: center;
}

.author-header {
    margin-bottom: 3rem;
}

.author-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.author-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin: 0 auto 3rem;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.author-role {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-weight: 500;
}

.author-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.author-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.author-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.highlight-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Legal Section */
.legal-section {
    background-color: #f8f9fa;
}

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

.legal-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.legal-content h4 {
    color: #8ACE00;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Simple Footer */
.simple-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem !important;
    color: #999 !important;
    margin-top: 0.25rem !important;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8ACE00;
}

/* Sub-page Styles */
.page-content {
    padding: 6rem 0 3rem;
    min-height: calc(100vh - 200px);
}

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

.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

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

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8ACE00;
    padding-bottom: 0.5rem;
}

.content-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.5rem;
}

.content-section strong {
    color: #333;
}

.support-buttons {
    margin: 2rem 0;
    text-align: center;
}

.support-btn {
    display: inline-block;
    background: #8ACE00;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: #7AB800;
    transform: translateY(-2px);
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-back {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #8ACE00;
}

/* Active navigation state */
.nav a.active,
.mobile-nav a.active {
    color: #000 !important;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem 1rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-content {
        gap: 1rem;
    }

    .nav-logo .logo-text {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    .coffee-text {
        display: none;
    }

    .buy-coffee-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .author-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-card {
        padding: 2rem 1.5rem;
    }

    .author-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }

    .author-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Mobile Input Optimization - 移动端输入优化 */
@media (max-width: 768px) {
    /* 防止iOS Safari缩放 */
    #text-input {
        font-size: 16px !important;
        line-height: 1.4;
        -webkit-appearance: none;
        -webkit-border-radius: 8px;
    }

    /* 输入框聚焦时保持页面可滚动 */
    body.input-focused {
        /* 移除固定定位，保持页面可滚动 */
    }

    body.input-focused #text-input {
        position: fixed !important;
        top: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: calc(100vw - 40px) !important;
        height: 180px !important;
        z-index: 1000 !important;
        background: white !important;
        border: 2px solid #8ACE00 !important;
        border-radius: 12px !important;
        padding: 15px !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
        resize: none !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    /* 移除遮罩层，让用户能看到预览变化 */

    /* 完成按钮 - 对勾图标 */
    .input-done-btn {
        display: none;
        position: fixed;
        top: 210px;
        right: 30px;
        z-index: 1001;
        background: #8ACE00;
        color: white;
        border: none;
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(138, 206, 0, 0.3);
        transition: all 0.3s ease;
        align-items: center;
        justify-content: center;
    }

    .input-done-btn::before {
        content: '✓';
        font-size: 20px;
        line-height: 1;
    }

    .input-done-btn:active {
        transform: scale(0.95);
        background: #7AB800;
    }

    body.input-focused .input-done-btn {
        display: flex;
    }

    /* 字符计数器 */
    body.input-focused .char-counter {
        position: fixed !important;
        top: 210px !important;
        left: 30px !important;
        z-index: 1001 !important;
        background: rgba(255,255,255,0.95) !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        font-size: 12px !important;
        color: #666 !important;
        backdrop-filter: blur(10px) !important;
    }

    /* 隐藏不必要的元素，保留预览区域 */
    body.input-focused .controls-area > .control-group:not(:has(#text-input)),
    body.input-focused .floating-download {
        opacity: 0.3;
        pointer-events: none;
    }
}
