/* ------------------------------- */
/*         LOCAL FONT FILES        */
/* ------------------------------- */

/* LATO - Regular (400) */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2');
}

/* LATO - Bold (700) */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-v25-latin-700.woff2') format('woff2');
}

/* MERRIWEATHER - Regular (titluri mari) */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2');
}

/* MERRIWEATHER - Bold (700) */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2');
}

/* ------------------------------- */
/*           WIDGET STYLE          */
/* ------------------------------- */

:root {
    --primary-color: #7f2c33;
    --text-color: #333;
    --bg-color: #fff;
    --link-color: #2a2621;
    --link-hover: #2a2621;
    --border-color: #eaeaea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: transparent; /* Permite site-ului gazdă să aibă fundal dacă iframe-ul e transparent */
    color: var(--text-color);
    width: 100%;
    height: auto;
    overflow: hidden; 
}

.widget-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Optional, depinde cum insereaza iframe-ul */
    overflow: hidden; /* Fără scroll pe containerul exterior */
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Umbra fina in interiorul iframe-ului */
}

/* HEADER - Branding & Data */
.widget-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.widget-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    margin: 0;
    font-weight: 700;
}

.widget-title a {
    color: #fff;
    text-decoration: none;
}

.widget-date {
    font-size: 13px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.icon-calendar {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.icon-calendar svg {
    width: 100%;
    height: 100%;
}

/* CONTENT AREA */
.widget-content {
    overflow: visible;
    padding: 12px;
}


/* RELIGIOUS HOLIDAY */
.holiday-container {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.sarbatoare-titlu {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.sarbatoare-titlu.titlu-zi-rosie { color: red; }
.sarbatoare-titlu.titlu-zi-neagra { color: #000; }

.cruce {
    font-weight: bold;
    font-size: 16px;
}

.cruce.rosie { color: red; }
.cruce.neagra { color: black; }

.post-info {
    color: #ffffff;
    font-style: italic;
    font-weight: 600;
    font-size: 11px;
    background-color: var(--primary-color);
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

/* EVENTS LIST */
.events-section h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-weight: 700;
    text-transform: uppercase;
}

.events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.events-list li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    padding-left: 12px;
}

.events-list li:last-child {
    margin-bottom: 0;
}

.events-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -1px;
    font-weight: bold;
}

.events-list li a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.events-list li a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.no-data {
    text-align: center;
    font-size: 13px;
    color: #888;
    font-style: italic;
    padding: 15px 0;
}
