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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}



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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* App Container */
.app-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-section {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 25px;
}

.control-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.control-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Text Input */
.text-input-container {
    position: relative;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

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

.character-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* Font Select */
.font-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.font-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.font-select option {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* Range Input */
.range-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-value {
    font-weight: 500;
    color: #374151;
    min-width: 50px;
    text-align: right;
    font-size: 14px;
}

/* Color Input */
.color-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 50px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    overflow: hidden;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-label {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #6b7280;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Background Options */
.background-options {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    accent-color: #3b82f6;
}

/* Alignment Options */
.alignment-options {
    display: flex;
    gap: 8px;
}

.alignment-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.alignment-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.alignment-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

/* Preset Sizes */
.preset-sizes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preset-btn {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.3;
}

.preset-btn:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.preset-btn small {
    color: #6b7280;
    font-size: 10px;
}

/* Dimension Inputs */
.dimension-inputs {
    display: flex;
    gap: 12px;
}

.dimension-input {
    flex: 1;
}

.dimension-input label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.dimension-input input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.dimension-input input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Download Options */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    color: #3b82f6;
}

.download-btn.primary {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: white;
}

.download-btn.primary:hover {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Reset Button */
.reset-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ef4444;
    border-radius: 8px;
    background: white;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 10px;
}

.reset-btn:hover {
    background: #ef4444;
    color: white;
}

/* Preview Area */
.preview-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.preview-info {
    font-size: 14px;
    color: #6b7280;
    font-family: 'Monaco', 'Menlo', monospace;
}

.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
    background: 
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
    overflow: hidden;
}

#textCanvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    margin: 80px 0;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 350px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .preview-area {
        order: 1;
    }
    
    .nav {
        gap: 20px;
    }
    
    .preset-sizes {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar,
    .preview-area {
        padding: 20px;
        border-radius: 12px;
    }
    
    .hero {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .alignment-options {
        flex-direction: column;
    }
    
    .dimension-inputs {
        flex-direction: column;
    }
}

/* Loading and Transition Effects */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
} 

/* Reset button styles for download buttons */
.download-btn,
.preset-btn,
.alignment-btn,
.reset-btn {
    all: unset;
    box-sizing: border-box;
}

/* Content Section Styles */
.content-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-top: 4rem;
}

.content-section .section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-header {
    padding: 1.5rem 2rem;
    background: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.content-header:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.content-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.toggle-icon.active {
    transform: rotate(45deg);
}

.content-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.content-body.active {
    padding: 2rem;
    max-height: 2000px;
    opacity: 1;
}

.content-body h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-top: 0;
}

.content-body h5 {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

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

.content-body ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

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

.content-body strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive Design for Content Section */
@media (max-width: 768px) {
    .content-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }
    
    .content-section .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .content-grid {
        margin: 0 1rem;
        gap: 1rem;
    }
    
    .content-header {
        padding: 1.25rem 1.5rem;
    }
    
    .content-header h3 {
        font-size: 1.1rem;
    }
    
    .content-body.active {
        padding: 1.5rem;
    }
    
    .content-body h4 {
        font-size: 1.1rem;
    }
    
    .content-body h5 {
        font-size: 1rem;
    }
} 

/* Content Toggle Animation */
.content-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-body.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.toggle-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(45deg);
}

/* Social Sharing Styles */
.social-sharing-section {
    margin: 50px 0;
}

.social-sharing {
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sharing-text {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 44px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

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

.share-btn.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.share-btn.email:hover {
    background: #34495e;
    border-color: #34495e;
    color: white;
}

.share-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive adjustments for sharing buttons */
@media (max-width: 768px) {
    .sharing-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .share-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .social-sharing {
        padding: 30px 20px;
    }
    
    .social-sharing-section {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .sharing-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .share-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
} 