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

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

.container {
    max-width: 1200px;
    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);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

/* Main Content */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Generator Section */
.generator-section {
    background: white;
    padding: 4rem 0;
    margin: 0 20px;
    border-radius: 20px;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.generator-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

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

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.char-counter {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Output Section */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2rem;
}

.text-styles {
    display: grid;
    gap: 1rem;
}

.style-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.style-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.style-name {
    font-weight: 600;
    color: #374151;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.style-output {
    font-size: 1.1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    min-height: 45px;
    display: flex;
    align-items: center;
    word-break: break-all;
    user-select: all;
}

.style-output:empty::before {
    color: #9ca3af;
    font-style: italic;
}

/* Specific placeholder text for each style */
#boldSerif:empty::before {
    content: "𝐘𝐨𝐮𝐫 𝐭𝐞𝐱𝐭 𝐰𝐢𝐥𝐥 𝐚𝐩𝐩𝐞𝐚𝐫 𝐡𝐞𝐫𝐞...";
}

#boldSans:empty::before {
    content: "𝗬𝗼𝘂𝗿 𝘁𝗲𝘅𝘁 𝘄𝗶𝗹𝗹 𝗮𝗽𝗽𝗲𝗮𝗿 𝗵𝗲𝗿𝗲...";
}

#italicBoldSerif:empty::before {
    content: "𝒀𝒐𝒖𝒓 𝒕𝒆𝒙𝒕 𝒘𝒊𝒍𝒍 𝒂𝒑𝒑𝒆𝒂𝒓 𝒉𝒆𝒓𝒆...";
}

#italicBoldSans:empty::before {
    content: "𝚈𝚘𝚞𝚛 𝚝𝚎𝚡𝚝 𝚠𝚒𝚕𝚕 𝚊𝚙𝚙𝚎𝚊𝚛 𝚑𝚎𝚛𝚎...";
}

#medievalBold:empty::before {
    content: "𝖞𝖔𝖚𝖗 𝖙𝖊𝖝𝖙 𝖜𝖎𝖑𝖑 𝖆𝖕𝖕𝖊𝖆𝖗 𝖍𝖊𝖗𝖊...";
}

#doubleStruck:empty::before {
    content: "𝕐𝕠𝕦𝕣 𝕥𝕖𝕩𝕥 𝕨𝕚𝕝𝕝 𝕒𝕡𝕡𝕖𝕒𝕣 𝕙𝕖𝕣𝕖...";
}

#blocks:empty::before {
    content: "🆈🅾🆄🆁 🆃🅴🆇🆃 🆆🅸🅻🅻 🅰🅿🅿🅴🅰🆁 🅷🅴🆁🅴...";
}

#circled:empty::before {
    content: "ⓨⓞⓤⓡ ⓣⓔⓧⓣ ⓦⓘⓛⓛ ⓐⓟⓟⓔⓐⓡ ⓗⓔⓡⓔ...";
}

#smallCaps:empty::before {
    content: "ʏᴏᴜʀ ᴛᴇxᴛ ᴡɪʟʟ ᴀᴘᴘᴇᴀʀ ʜᴇʀᴇ...";
}

/* Quick Examples */
.quick-examples {
    margin-top: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.example-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}


/* About Section */
.about-section {
    background: white;
    padding: 4rem 0;
    margin: 2rem 20px 0;
    border-radius: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #374151;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #374151;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.unicode-examples {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.unicode-set {
    margin-bottom: 1.5rem;
}

.unicode-set:last-child {
    margin-bottom: 0;
}

.unicode-set h4 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.unicode-chars {
    font-size: 1.25rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    word-break: break-all;
    user-select: all;
}

.benefits-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.benefits-list i {
    color: #10b981;
    font-size: 1.1rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.visual-card h4 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.text-example {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.text-example.normal {
    color: #6b7280;
}

.text-example.bold {
    color: #667eea;
    font-size: 1.1rem;
}

.arrow {
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .generator-section,
    .about-section {
        margin: 1rem 10px 0;
        padding: 2rem 0;
    }

    .generator-card {
        padding: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .input-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .style-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .generator-section,
    .about-section {
        margin: 0.5rem 5px 0;
    }

    .unicode-chars {
        font-size: 1rem;
    }

    .style-output {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}
