/**
 * TamilFont.in - Global CSS Stylesheet
 */

/* ========================================================
   LOCAL & EMBEDDED TAMIL FONTS (@font-face)
   ======================================================== */

/* 1. Bamini (Legacy Calligraphy / Typewriter) */
@font-face {
    font-family: 'Bamini';
    src: url('../fonts/Bamini.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. Mukta Malar (Regular & Bold) */
@font-face {
    font-family: 'Mukta Malar';
    src: url('../fonts/MuktaMalar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mukta Malar';
    src: url('../fonts/MuktaMalar-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 3. Baloo Thambi 2 (Regular & Bold) */
@font-face {
    font-family: 'Baloo Thambi 2';
    src: url('../fonts/BalooThambi2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Baloo Thambi 2';
    src: url('../fonts/BalooThambi2-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 4. Catamaran (Regular & Bold) */
@font-face {
    font-family: 'Catamaran';
    src: url('../fonts/Catamaran-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Catamaran';
    src: url('../fonts/Catamaran-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 5. Kavivanar */
@font-face {
    font-family: 'Kavivanar';
    src: url('../fonts/Kavivanar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 6. Arima Madurai (Regular & Bold) */
@font-face {
    font-family: 'Arima Madurai';
    src: url('../fonts/ArimaMadurai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Arima Madurai';
    src: url('../fonts/ArimaMadurai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 7. Meera Inimai */
@font-face {
    font-family: 'Meera Inimai';
    src: url('../fonts/MeeraInimai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 8. Noto Sans Tamil (Regular & Bold) */
@font-face {
    font-family: 'Noto Sans Tamil';
    src: url('../fonts/NotoSansTamil-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans Tamil';
    src: url('../fonts/NotoSansTamil-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 9. Noto Serif Tamil (Regular & Bold) */
@font-face {
    font-family: 'Noto Serif Tamil';
    src: url('../fonts/NotoSerifTamil-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif Tamil';
    src: url('../fonts/NotoSerifTamil-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 10. Pavanam */
@font-face {
    font-family: 'Pavanam';
    src: url('../fonts/Pavanam-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 11. Chemmozhi Thendral (Traditional Calligraphy) */
@font-face {
    font-family: 'Chemmozhi Thendral';
    src: url('../fonts/ChemmozhiThendral.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 12. Chemmozhi Vaigai (Wedding & Traditional Script) */
@font-face {
    font-family: 'Chemmozhi Vaigai';
    src: url('../fonts/ChemmozhiVaigai.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 13. Post No Bills Jaffna (Cinema Poster & Flex Banner) */
@font-face {
    font-family: 'Post No Bills Jaffna';
    src: url('../fonts/PostNoBillsJaffna-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 14. Lohit Tamil (Literary & Editorial Standard) */
@font-face {
    font-family: 'Lohit Tamil';
    src: url('../fonts/Lohit-Tamil.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 15. Chemmozhi Comic (Artistic Display) */
@font-face {
    font-family: 'Chemmozhi Comic';
    src: url('../fonts/ChemmozhiComic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 16. Yaldevi Jaffna (Modern Bold Headline) */
@font-face {
    font-family: 'Yaldevi Jaffna';
    src: url('../fonts/YaldeviJaffna-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Font Family Helper Classes */
.font-bamini { font-family: 'Bamini', sans-serif !important; }
.font-mukta { font-family: 'Mukta Malar', sans-serif !important; }
.font-baloo { font-family: 'Baloo Thambi 2', sans-serif !important; }
.font-catamaran { font-family: 'Catamaran', sans-serif !important; }
.font-kavivanar { font-family: 'Kavivanar', cursive !important; }
.font-arima { font-family: 'Arima Madurai', cursive !important; }
.font-meera { font-family: 'Meera Inimai', sans-serif !important; }
.font-noto-sans { font-family: 'Noto Sans Tamil', sans-serif !important; }
.font-noto-serif { font-family: 'Noto Serif Tamil', serif !important; }
.font-pavanam { font-family: 'Pavanam', sans-serif !important; }
.font-thendral { font-family: 'Chemmozhi Thendral', cursive, sans-serif !important; }
.font-vaigai { font-family: 'Chemmozhi Vaigai', cursive, sans-serif !important; }
.font-postnobills { font-family: 'Post No Bills Jaffna', sans-serif !important; }
.font-lohit { font-family: 'Lohit Tamil', sans-serif !important; }
.font-comic { font-family: 'Chemmozhi Comic', cursive, sans-serif !important; }
.font-yaldevi { font-family: 'Yaldevi Jaffna', sans-serif !important; }


/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.dark .glass-card {
    background: rgba(22, 31, 48, 0.9);
}

/* Font Cards */
.font-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.font-card:hover {
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ad Placement Containers */
.ad-placement-wrapper {
    position: relative;
    min-height: 90px;
    margin: 1.5rem auto;
}
.ad-container {
    width: 100%;
}
