/*
Theme Name: Elazığ Portal
Theme URI: https://elazig.portal
Author: Elazığ Portal
Author URI: https://elazig.portal
Description: Elazığ Kent Rehberi - Şehir Portalı Teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elazig-portal
*/

:root {
    --bordo: #6b0000;
    --dark-nav: #1a1a1a;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f4f4f7;
    color: #222;
    overflow-x: hidden;
}

header {
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.logo { color: var(--dark-nav); font-weight: 800; font-size: 28px; text-decoration: none; letter-spacing: -0.5px; }

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-top: 5px;
}
.corp-nav { color: #888; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; }
.auth-links { display: flex; gap: 12px; }
.auth-btn {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-login {
    color: var(--dark-nav);
    border: 2px solid #eee;
    background: #fdfdfd;
}
.btn-login:hover {
    border-color: var(--dark-nav);
    background: var(--dark-nav);
    color: white;
}
.btn-register {
    background: var(--bordo);
    color: white;
    box-shadow: 0 4px 10px rgba(107, 0, 0, 0.2);
}
.btn-register:hover {
    background: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 0, 0, 0.3);
}

.black-nav {
    background: var(--dark-nav);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 4px solid var(--bordo);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
    display: flex; flex-direction: column; align-items: center;
    color: white; text-decoration: none; min-width: 90px; transition: 0.3s;
}
.nav-link:hover { color: #ffb4b4; transform: translateY(-3px); }
.nav-link i { font-size: 28px; margin-bottom: 10px; }
.nav-link span { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }

.breaking-news-bar {
    background: transparent;
    height: 60px;
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.breaking-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 95%;
    height: 46px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 0 15px 0 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    box-sizing: border-box;
    overflow: hidden;
}
.breaking-label {
    background: var(--bordo);
    color: white;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-right: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.breaking-text { font-size: 13px; font-weight: 600; color: #444; flex: 1; }

.exchange-rates {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #f0f0f0;
    height: 25px;
}
.rate-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.rate-item span { font-size: 9px; font-weight: 800; color: #999; text-transform: uppercase; }
.rate-item b { font-size: 13px; color: #333; }
.rate-up { color: #27ae60 !important; }

.portal-wrapper {
    max-width: 1300px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.main-stage { display: flex; flex-direction: column; gap: 25px; }
.hero-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }

.slider-box {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 480px;
    box-shadow: var(--shadow);
}
.slider-container { width: 100%; height: 100%; position: relative; }
.slide-item {
    position: absolute; top:0; left:0; width:100%; height:100%;
    opacity:0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
}
.slide-item.active { opacity:1; }
.slider-txt {
    position: absolute; bottom: 0; padding: 60px 40px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white; width: 100%; box-sizing: border-box;
}
.slider-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer;
    z-index: 10; transition: 0.3s; backdrop-filter: blur(5px);
}
.slider-nav-btn:hover { background: var(--bordo); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-indicators {
    position: absolute; bottom: 20px; right: 40px;
    display: flex; gap: 8px; z-index: 10;
}
.indicator {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s;
}
.indicator.active { background: white; width: 25px; border-radius: 10px; }

.weather-widget {
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f4f7 100%);
    border-radius: 25px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    gap: 20px;
}
.w-main { display: flex; align-items: center; gap: 20px; }
.w-text-group { display: flex; align-items: center; gap: 15px; }
.w-temp-main { font-size: 34px; font-weight: 800; color: var(--bordo); line-height: 1; }
.w-city { font-size: 18px; font-weight: 700; color: #333; }
.w-desc { font-size: 14px; color: #777; }
.w-details { display: flex; gap: 15px; color: #666; font-size: 13px; min-width: fit-content; }
.w-details span i { color: var(--bordo); margin-right: 5px; }

.w-forecast-inline {
    display: flex;
    gap: 25px;
    padding: 0 35px;
    border-left: 2px solid #eee;
    border-right: 2px solid #eee;
    flex: 1;
    justify-content: center;
}
.f-mini-item { text-align: center; min-width: 55px; transition: 0.3s; }
.f-mini-item:hover { transform: translateY(-2px); }
.f-mini-day { font-size: 11px; font-weight: 800; color: #999; text-transform: uppercase; display: block; margin-bottom: 4px; }
.f-mini-icon { font-size: 20px; color: var(--bordo); margin: 5px 0; display: block; }
.f-mini-temp { font-size: 15px; font-weight: 800; color: #333; display: block; }

.news-feed { display: flex; flex-direction: column; gap: 12px; }
.news-card {
    background: #fcfcfc;
    padding: 12px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    align-items: center;
    height: 108px;
    box-sizing: border-box;
}
.news-card:hover { background: #fffafa; border-color: #ffcccc; transform: translateX(5px); }
.news-thumb { width: 70px; height: 70px; background: #eee; border-radius: 15px; flex-shrink: 0; }
.news-card b { font-size: 15px; color: var(--bordo); display: block; }
.news-card small { color: #666; font-size: 13px; }

.bottom-sidebar {
    background: #f9f9f9;
    border-radius: 25px;
    padding: 20px;
    border: 1px solid #eee;
}
.sb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.sb-title {
    font-size: 12px; font-weight: 800; color: #888; text-transform: uppercase;
    margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
}
.sb-title::after { content:""; flex:1; height:1px; background:#ddd; }

.sb-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    background: white;
    border: 1px solid #eee;
    transition: 0.2s;
    gap: 10px;
}
.sb-link:hover { background: var(--bordo); color: white; border-color: var(--bordo); transform: translateY(-3px); }

.company-thumb {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-right: 0 !important;
    display: block;
}

.city-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { height: 180px; background: #ddd; border-radius: 25px; background-size: cover; background-position: center; border: 4px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

footer {
    background: var(--dark-nav);
    color: white;
    padding: 60px 0 20px 0;
    margin-top: 50px;
    border-top: 5px solid var(--bordo);
}
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 0 20px;
}
.footer-col h4 { color: white; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--bordo); }
.footer-col p { font-size: 14px; line-height: 1.6; color: #aaa; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-links a:hover { color: white; padding-left: 5px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a { width: 38px; height: 38px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 10px; color: white; text-decoration: none; transition: 0.3s; }
.social-icons a:hover { background: var(--bordo); transform: translateY(-3px); }
.footer-bottom { max-width: 1300px; margin: 40px auto 0; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #777; }

@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; }
    .weather-widget { flex-direction: column; gap: 20px; text-align: center; }
    .w-forecast-inline { border: none; padding: 20px 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .city-gallery { grid-template-columns: repeat(2, 1fr); }
    .portal-wrapper { padding: 20px; border-radius: 25px; margin: 15px; }
    .breaking-inner { width: 95%; }
    .exchange-rates { display: none; }
}
