/* fontstyle.info - Professional eye-safety design */
:root {
    --berry-pink: #C13584; /* Eye-safety professional pink */
    --lite-bg: #F8F9FA;
    --border-color: #EAEAEA;
    --text-main: #1A1A1B;
    --text-muted: #65676B;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: #ffffff; color: var(--text-main); }

/* --- PADDING & CONTAINER (Imagetotext Style) --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER & NAVIGATION --- */
.main-header { border-bottom: 1px solid var(--border-color); background: #fff; position: sticky; top: 0; z-index: 1000; height: 65px; display: flex; align-items: center; }
.flex-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; font-weight: 900; color: #000; text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--berry-pink); }

.icon-btn { background: #f0f2f5; border: none; cursor: pointer; padding: 10px; border-radius: 50%; display: flex; align-items: center; transition: 0.2s; }
.icon-btn:hover { background: #e4e6eb; }

/* --- SIDEBAR DRAWER --- */
#sideNav { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background: #fff; z-index: 9999; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 15px 0 50px rgba(0,0,0,0.1); }
#sideNav.active { left: 0; }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: none; z-index: 9000; }
.nav-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: var(--lite-bg); }
.nav-links a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--border-color); text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.2s; }
.nav-links a:hover { background: var(--lite-bg); color: var(--berry-pink); }

/* --- TOOL SECTION (Picsart Style) --- */
.tool-section { padding: 40px 0; }
.h1-title { font-size: 26px; font-weight: 900; text-align: center; margin-bottom: 30px; color: var(--text-main); }

.input-wrapper { background: var(--lite-bg); border: 2px solid var(--berry-pink); border-radius: 16px; position: relative; padding: 5px; transition: 0.3s; }
textarea { width: 100%; height: 110px; padding: 20px 130px 20px 20px; border: none; background: transparent; outline: none; font-size: 18px; color: #000; line-height: 1.5; }

#genBtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: var(--berry-pink); color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.2s; }
#genBtn:active { transform: translateY(-50%) scale(0.95); }

/* --- CATEGORIES --- */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 25px 0; scrollbar-width: none; }
.cat-btn { padding: 10px 20px; border: 1px solid var(--border-color); border-radius: 30px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: 0.2s; color: var(--text-muted); }
.cat-btn.active { background: var(--berry-pink); color: #fff; border-color: var(--berry-pink); box-shadow: 0 4px 10px rgba(193, 53, 132, 0.2); }

/* --- FONT CARDS --- */
.font-box { background: #ffffff; border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.font-box:hover { border-color: var(--berry-pink); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }

.style-name { font-size: 10px; font-weight: 800; color: #ADB5BD; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.font-text { font-size: 1.5rem; color: #000; word-break: break-all; }
.copy-indicator { display: none; color: var(--berry-pink); font-size: 11px; font-weight: 700; margin-right: 12px; }

/* --- FOOTER (Imagetotext Black Style) --- */
.main-footer { background: #000000; color: #888; padding: 60px 0 30px 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; border-bottom: 1px solid #222; padding-bottom: 40px; }
.footer-h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: #fff; }

.lang-selector { position: relative; width: 100%; max-width: 200px; }
.lang-btn { width: 100%; background: #111; border: 1px solid #333; color: #fff; padding: 12px 15px; border-radius: 8px; font-size: 14px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.lang-dropup { position: absolute; bottom: 110%; left: 0; width: 100%; background: #111; border: 1px solid #333; border-radius: 8px; display: none; overflow: hidden; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); }
.lang-dropup a { display: block; padding: 12px 15px; color: #fff; text-decoration: none; font-size: 14px; }
.lang-dropup a:hover { background: #222; }

.copyright-bar { padding-top: 30px; text-align: center; font-size: 12px; color: #555; }

/* UTILS */
.rotating { animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hidden { display: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .h1-title { font-size: 20px; }
    textarea { padding-right: 20px; height: 130px; }
    #genBtn { top: auto; bottom: 12px; transform: none; right: 12px; width: calc(100% - 24px); justify-content: center; }
    .font-text { font-size: 1.2rem; }
}