/* Yazı Stilleri - Black/Red/Gold Theme */
/* Version: 2.0.0 - Turkish Font Generator */

/* Reset & Base */
.ys-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 0rem;
    background: #1A202C;
    min-height: 100vh;
}

.ys-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: inherit;
    box-sizing: border-box;
}

.ys-container * {
    box-sizing: border-box;
}

/* Hero Section - Red Gradient */
.ys-hero {
    text-align: center;
    color: white;
    padding: 1rem 1rem;
    animation: ysFadeInDown 0.8s ease;
}

.ys-hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: white;
}

.ys-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: white;
}

/* Badges - Gold Accent */
.ys-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 0.5rem;
    font-size: 0.875rem;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Old Header - Hide */
.ys-header {
    display: none;
}

/* Input Section - White Card */
.ys-input-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(227, 10, 23, 0.3);
    margin-bottom: 2rem;
    animation: ysFadeInUp 0.8s ease 0.2s both;
}

.ys-input-wrapper {
    position: relative;
    margin: 0 auto 1.5rem;
    max-width: 100%;
}

.ys-input-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    display: block;
    margin-bottom: 0.75rem;
}

.ys-input {
    width: 100%;
    padding: 1rem 80px 1rem 1rem;
    font-size: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.ys-input:focus {
    border-color: #E30A17;
    box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.1);
    background: #fff;
}

.ys-input::placeholder {
    color: #a0aec0;
}

.ys-input-controls {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ys-char-count {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.ys-clear-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #E30A17 0%, #8B0000 100%);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
}

.ys-clear-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(227, 10, 23, 0.4);
}

.ys-helper-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

/* Controls Section */
.ys-controls {
    display: flex;
    justify-content: center;
    margin: 0;
}

.ys-size-controls {
    display: flex;
    gap: 0.5rem;
    background: #f7fafc;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ys-size-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
}

.ys-size-btn:hover {
    border-color: #E30A17;
    color: #E30A17;
    background: #fff5f5;
}

.ys-size-btn:active {
    background: linear-gradient(135deg, #E30A17 0%, #8B0000 100%);
    color: white;
    border-color: #E30A17;
}

/* Results Section - White Background */
.ys-results-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(227, 10, 23, 0.3);
    min-height: 300px;
    animation: ysFadeInUp 0.8s ease 0.4s both;
}

/* Results Grid */
.ys-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
    margin: 0;
}

/* Result Item */
.ys-item {
    background: #f9f9f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: ysFadeInUp 0.6s ease both;
}

.ys-item:hover {
    border-color: #E30A17;
    box-shadow: 0 8px 24px rgba(227, 10, 23, 0.15);
    transform: translateY(-2px);
}

.ys-item-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1a202c;
    word-break: break-word;
    margin-bottom: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.ys-item-actions {
    display: flex;
    gap: 0.75rem;
}

/* Copy Button - Red Gradient */
.ys-copy-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: linear-gradient(135deg, #E30A17 0%, #8B0000 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(227, 10, 23, 0.3);
}

.ys-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(227, 10, 23, 0.5);
}

.ys-copy-btn:active {
    transform: scale(0.98);
}

/* Success State - Gold */
.ys-copy-btn.copied {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* Toast Notification - Gold */
.ys-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.ys-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Empty State */
.ys-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #cbd5e0;
}

.ys-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ys-empty-text {
    font-size: 1rem;
    color: #a0aec0;
}

/* Load More Button - Red to Gold Gradient */
.ys-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.ys-load-more-btn {
    background: linear-gradient(135deg, #E30A17 0%, #FFD700 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 10, 23, 0.4);
}

.ys-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 10, 23, 0.6);
}

.ys-load-more-btn:active {
    transform: translateY(0);
}

/* Module: Invisible Space */
.ys-tool-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(227, 10, 23, 0.2);
}

.ys-invisible-preview {
    font-size: 1.5rem;
    font-family: monospace;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px dashed #e2e8f0;
    color: #718096;
}

.ys-tool-desc {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.ys-action-btn {
    background: linear-gradient(135deg, #E30A17 0%, #8B0000 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 10, 23, 0.3);
}

.ys-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 10, 23, 0.5);
}

.ys-action-btn.copied {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

/* Module: Emoji Picker */
.ys-emoji-container {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(227, 10, 23, 0.2);
}

.ys-emoji-categories {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f9f9f9;
    overflow-x: auto;
}

.ys-cat-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #718096;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ys-cat-btn.active {
    color: #E30A17;
    background: white;
    border-bottom: 3px solid #E30A17;
}

.ys-cat-btn:hover {
    color: #E30A17;
    background: #fff5f5;
}

.ys-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.ys-emoji-item {
    font-size: 1.75rem;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ys-emoji-item:hover {
    background: #fff5f5;
    transform: scale(1.15);
}

/* Animations */
@keyframes ysFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ysFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.ys-copy-btn.copied,
.ys-action-btn.copied {
    animation: copyPulse 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ys-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .ys-hero {
        padding: 1.5rem 1rem;
    }
    
    .ys-hero h2 {
        font-size: 2rem;
    }
    
    .ys-input-section,
    .ys-results-section {
        padding: 1.5rem;
    }
    
    .ys-input {
        padding: 0.875rem 70px 0.875rem 0.875rem;
        font-size: 1rem;
    }
    
    .ys-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ys-item {
        padding: 1.25rem;
    }
    
    .ys-item-text {
        font-size: 1.25rem;
        min-height: 40px;
    }
    
    .ys-copy-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .ys-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .ys-hero h2 {
        font-size: 1.75rem;
    }
    
    .ys-input {
        padding: 0.75rem 60px 0.75rem 0.75rem;
        font-size: 0.9375rem;
    }
    
    .ys-size-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .ys-item {
        padding: 1rem;
    }
    
    .ys-item-text {
        font-size: 1.125rem;
    }
    
    .ys-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
}