/*
Theme Name: 5. İmmüno Romatoloji 2027
Description: 5. İmmüno Romatoloji Sempozyumu (25-27 Mart 2027) için blok tema.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: immuno-romatoloji
License: GPLv2 or later
*/

:root {
  --ir-lacivert: var(--wp--preset--color--lacivert);
  --ir-pembe: var(--wp--preset--color--pembe);
  --ir-cizgi: var(--wp--preset--color--cizgi);
}

/* Header */
.ir-header { box-shadow: 0 1px 0 rgba(8,59,124,.08); }
.ir-header .wp-block-navigation a:hover,
.ir-header .wp-block-navigation .current-menu-item > a,
.ir-header .wp-block-navigation a[aria-current="page"] { color: var(--ir-pembe); }

/* Inner page title band */
.ir-baslik-bandi { border-bottom: 4px solid var(--ir-pembe); }

/* Home: banner + countdown */
.ir-banner { margin: 0 !important; }
.ir-banner img { width: 100%; height: auto; display: block; }
.ir-sayac { background: linear-gradient(90deg, var(--ir-lacivert) 0%, #3A5FD8 100%); color: #fff; padding: 28px 20px 34px; margin-top: 0 !important; }
.ir-sayac-baslik { color: #fff; letter-spacing: .08em; margin: 0 0 .75rem; }
.ir-geri-sayim { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.ir-geri-sayim div { background: rgba(255,255,255,.12); border-bottom: 3px solid var(--ir-pembe); border-radius: 6px; padding: .6rem 1rem; min-width: 84px; text-align: center; color: #fff; }
.ir-geri-sayim b { display: block; font-size: 2rem; line-height: 1.1; font-family: var(--wp--preset--font-family--poppins); }
.ir-geri-sayim span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* Home sections */
.ir-davet { padding: 60px 20px 90px; margin-top: 0 !important; }
.ir-davet h2 { font-family: var(--wp--preset--font-family--open-sans); }
.ir-davet h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--ir-pembe); margin: .6rem auto 0; border-radius: 2px; }
.ir-davet .wp-block-buttons { justify-content: center; margin-top: 2rem; }
.ir-davet .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ir-lacivert); border: 2px solid var(--ir-lacivert); }
.ir-davet .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ir-lacivert); color: #fff; }
.ir-bant { background: var(--ir-lacivert); color: #fff; padding: 90px 20px 100px; margin-top: 0 !important; background-image: radial-gradient(circle at 85% 20%, rgba(239,46,127,.35), transparent 45%); }
.ir-bant h2 { color: #fff; font-family: var(--wp--preset--font-family--open-sans); font-size: var(--wp--preset--font-size--large); }
.ir-tarih-listesi { font-size: var(--wp--preset--font-size--large); line-height: 1.7; }

/* Tables */
.ir-tablo table { border-collapse: collapse; width: 100%; }
.wp-block-table.ir-tablo thead { border-bottom: 0; }
.ir-tablo th { background: var(--ir-lacivert); color: #fff; font-weight: 600; padding: 1rem .75rem; text-align: left; }
.ir-tablo th.has-text-align-center { text-align: center; }
.ir-tablo td { border: 1px solid var(--ir-cizgi); padding: .8rem .75rem; vertical-align: middle; }
.ir-tablo td:first-child { font-weight: 600; }
.ir-tablo td:first-child em { font-weight: 400; }
.wp-block-table.ir-tablo { margin-bottom: 1.5rem; }

/* Kurullar / Genel Bilgiler: label column */
.ir-kurul table { table-layout: fixed; }
.ir-kurul td { vertical-align: top; }
.ir-kurul td:first-child { width: 40%; background: var(--ir-lacivert); color: #fff; border-color: var(--ir-lacivert); font-size: .9rem; }
.ir-kurul td:last-child { line-height: 1.9; }
.ir-kurul { margin-bottom: .75rem !important; }

/* Bilimsel program */
.wp-block-table.ir-program table, .wp-block-table.ir-program .has-fixed-layout { table-layout: auto; font-size: .9rem; }
.ir-program td { line-height: 1.6; }
.ir-program td:first-child { font-weight: 400; width: 12%; white-space: nowrap; }
.ir-program td:last-child:not([colspan]) { width: 20%; }
.ir-program tr:has(td[colspan]) td { background: var(--wp--preset--color--acik-mavi); }
.ir-program tr:has(td[colspan] em) td { background: var(--wp--preset--color--acik-pembe); }
.ir-program td em { font-style: normal; font-weight: 700; }
.ir-sponsor { float: right; margin-left: 1rem; }

/* Lists and notes */
.ir-notlar { font-style: italic; }
.ir-notlar li { margin-bottom: .35rem; }
.ir-not { font-size: var(--wp--preset--font-size--small); color: #5a6476; font-style: italic; }
.ir-alt-baslik { font-style: italic; margin-bottom: 0; }
.ir-vurgu { font-size: 1.25rem; }
.ir-buyuk-buton .wp-block-button__link { font-size: 1.15rem; padding: .8rem 1.6rem; box-shadow: 6px 6px 0 rgba(8,59,124,.18); }
.ir-imza { line-height: 1.7; }
.ir-iletisim { line-height: 1.9; }
.ir-pdf a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }

/* Footer */
.ir-footer a { color: inherit; }

@media (max-width: 781px) {
  .ir-tablo { overflow-x: auto; }
  .ir-kurul td:first-child { width: 45%; }
  .ir-geri-sayim div { min-width: 64px; padding: .5rem .6rem; }
  .ir-geri-sayim b { font-size: 1.5rem; }
}
