/* ========================================================================= */
/* --- MDstüdyo Modern Palet ve Efekt Tanımlamaları --- */
/* ========================================================================= */

:root {
    /* Ana lacivert/mavi tonları */
    --md-blue-dark: #004A7F;
    --md-blue-medium: #007ACC;
    --md-blue-light: #000000;
    --md-blue-background: #000000; /* Açık mavi/gri zemin */

    /* Vurgu Rengi (Mevcut turuncu korundu) */
    --md-accent: #ff9000;
    --md-accent-hover: #FFA13D;

    /* Glassmorphism Ayarları (Hafif Şeffaflık) */
    --glass-blur: 10px;
    --glass-bg-opacity: 0.1; /* Çok hafif arka plan şeffaflığı */
    --glass-border-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Glassmorphism Temel Sınıfı (Bunu Navbar, Footer veya Kartlara eklemelisiniz) */
.glass-effect {
    background-color: rgba(255, 255, 255, var(--glass-bg-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 74, 127, 0.1); /* Hafif mavi gölge */
    transition: all var(--transition-speed) ease-in-out;
}

/* ========================================================================= */
/* --- Genel Ayarlar ve Tipografi --- */
/* ========================================================================= */

html,
body {
    height: 100%;
    background-color: var(--md-blue-background); /* Arka plan rengi güncellendi */
}

textarea {
    resize: none;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--md-blue-medium); /* Bağlantılar mavi tona güncellendi */
    transition: color var(--transition-speed) ease-in-out;
}

a:hover {
    text-decoration: none;
    color: var(--md-accent); /* Hover rengi turuncu korundu */
}

h1 {
    color: var(--md-accent); /* H1 turuncu korundu */
}

/* Gri butonlar mavi/gri tonlarına güncellendi */
.grey {
    background-color: #A9BCCF; /* Daha modern, açık mavi/gri */
    color: white;
    transition: background-color var(--transition-speed) ease-in-out;
}

.grey:hover {
    background-color: #7994B6; /* Hover'da koyulaşma */
    color: white;
}

/* ========================================================================= */
/* --- Giriş/Kayıt Sayfaları --- */
/* ========================================================================= */

/* [Login page] cover */
#cover {
    /* Arka plan rengi lacivert tona güncellendi */
    background: var(--md-blue-dark) url('../img/cover2.png') center center no-repeat;
    background-size: cover;
    color: white;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
}

#signup {
    background: url('../img/cover2.png') center center no-repeat;
    background-size: cover; 
    background-attachment: fixed;
    width: 100%;
    
}

#signup-form {
    text-align: center;
    align-items: center;
}

#cover-caption {
    width: 100%;
}

.section-content {
    padding: 5rem 0;
}

.about-text {
    /* Glassmorphism temelli hafif bir görünüm */
    background: rgba(0, 74, 127, 0.7); /* Lacivert şeffaflık */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    color: white;
    padding: 1.875rem;
}

#footer-main {
    background: var(--md-blue-dark); /* Lacivert koyu ton */
    color: white;
    font-size: 0.8rem;
    padding: 2.5rem 0;
    /* Footer için hafif bir gölge */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================================================= */
/* --------------Profile card---------------------- */
/* ========================================================================= */

.card-profile {
    width: 230px;
    height: 330px;
    margin: 50px auto;
    background-color: #F8F8F8; /* Hafif, modern bir arka plan */
    border-radius: 8px; /* Köşeler yumuşatıldı */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow var(--transition-speed) ease-in-out;
}
.card-profile:hover {
    box-shadow: 0 8px 20px rgba(0, 74, 127, 0.2); /* Hover'da hafif mavi gölge */
}
.card-profile .card-img-top {
    border-radius: 8px 8px 0 0; /* Üst köşeler yumuşatıldı */
}
.card-img-profile {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -45px;
    margin-bottom: 35px;
    border: 3px solid #F8F8F8; /* Kart arka plan rengiyle uyumlu */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.edit-profile {
    position: absolute;
    right: 10px;
    top: 110px;
    transition: transform var(--transition-speed) ease-in-out;
}
.edit-profile:hover {
    transform: scale(1.1);
}

.card-img-profile {
    transition: transform var(--transition-speed) ease-in-out;
}

.card-img-profile:hover {
    transform: scale(1.1); /* Büyüme hafif artırıldı */
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5); /* Hafif mavi parlama */
}

.card-profile .card-title {
    margin-bottom: 50px;
}
.card-profile .card-title small {
    display: block;
    font-size: .6em;
    margin-top: .2em;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================================================= */
/* --------------Custom Radio Button (Toggle)---------------------- */
/* ========================================================================= */
.btn-r {
    border: 3px solid var(--md-blue-medium); /* Mavi sınır */
    display: inline-block;
    padding: 10px;
    position: relative;
    text-align: center;
    transition: background 400ms ease, color 400ms ease;
}

input[type="radio"].toggle {
    display: none;
}
input[type="radio"].toggle + label {
    cursor: pointer;
    min-width: 60px;
    z-index: 2;
    transition: color 400ms;
}
input[type="radio"].toggle + label:hover {
    background: none;
    color: var(--md-blue-dark); /* Hover'da koyu mavi */
}
input[type="radio"].toggle + label:after {
    background: var(--md-blue-dark); /* Dolu renk koyu mavi */
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    transition: left 200ms cubic-bezier(0.77, 0, 0.175, 1);
    width: 100%;
    z-index: -2;
}
/* ... Diğer toggle kuralları (left, right, checked) ... */
input[type="radio"].toggle.toggle-left + label {
    border-right: 0;
}
input[type="radio"].toggle.toggle-left + label:after {
    left: 100%;
}
input[type="radio"].toggle.toggle-right + label {
    margin-left: -5px;
}
input[type="radio"].toggle.toggle-right + label:after {
    left: -100%;
}
input[type="radio"].toggle:checked + label {
    cursor: default;
    color: #fff;
    transition: color 200ms;
}
input[type="radio"].toggle:checked + label:after {
    left: 0;
    z-index: 0;
}

/* ========================================================================= */
/* ------------ Profile Page --------------*/
/* ========================================================================= */

#user-section {
    background-color: #FFFFFF; /* Beyaz zemin (glassmorphism için) */
    padding: 0px;
    margin: 40px 0px 60px 0px;
    padding-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Hafif gölge */
}

.cover-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0; /* Üst köşeler yumuşatıldı */
}

.profile-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -65px;
    margin-bottom: 0px;
    border: 4px solid #FFFFFF; /* Beyaz sınır */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease-in-out;
}
.profile-img:hover {
    transform: scale(1.05);
}

#admin-badge {
    width: 50px;
    position: absolute;
    margin-top: 30px;
    margin-left: -50px;
}

.profile-bio {
    text-align: justify;
    padding: 5%;
}

/* ========================================================================= */
/* --------------- User's Forum cards & Card Genel Stili --------------- */
/* ========================================================================= */

.card {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    transition: box-shadow var(--transition-speed) ease-in-out;
}
.card:hover {
    box-shadow: 0 5px 15px rgba(0, 74, 127, 0.2); /* Hover'da hafif mavi gölge */
}

.card-inverse-user-forums .card-img-overlay {
    overflow: hidden;
    background-color: rgba(0, 74, 127, 0.85); /* Lacivert Overlay */
    border-color: rgba(0, 74, 127, 0.85);
    transition: background-color var(--transition-speed) ease-in-out;
}

.card-inverse-user-forums:hover .card-img-overlay {
    background-color: rgba(0, 122, 204, 0.9); /* Hover'da daha parlak mavi */
}

.card-inverse-user-pollvotes .card-img-overlay {
    overflow: hidden;
    background-color: rgba(255, 138, 20, 0.85); /* Turuncu Overlay korundu */
    border-color: rgba(255, 138, 20, 0.85);
    transition: background-color var(--transition-speed) ease-in-out;
}

.card-inverse-user-pollvotes:hover .card-img-overlay {
    background-color: rgba(255, 161, 61, 0.9); /* Hover'da daha parlak turuncu */
}

.user-blogs .card-img-top {
    height: 6rem;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ========================================================================= */
/* ------------------------ Custom Checkbox ----------------------------------------*/
/* ========================================================================= */

.checkbox-animated {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}
.checkbox-animated input[type=checkbox] {
    display: none;
}
/* ... Diğer checkbox kısımları korundu (Sadece renkler güncellenebilir) ... */
.checkbox-animated input[type=checkbox]:disabled ~ label .box {
    border-color: #777;
    background-color: #E6E6E6;
}
.checkbox-animated input[type=checkbox]:disabled ~ label .check {
    border-color: #777;
}
.checkbox-animated input[type=checkbox]:checked ~ label .box {
    opacity: 0;
    -webkit-transform: scale(0) rotate(-180deg);
    -moz-transform: scale(0) rotate(-180deg);
    transform: scale(0) rotate(-180deg);
}
.checkbox-animated input[type=checkbox]:checked ~ label .check {
    opacity: 1;
    -webkit-transform: scale(1) rotate(45deg);
    -moz-transform: scale(1) rotate(45deg);
    transform: scale(1) rotate(45deg);
}
.checkbox-animated label {
    cursor: pointer;
    padding-left: 28px;
    font-weight: normal;
    margin-bottom: 0;
}
.checkbox-animated label span {
    display: block;
    position: absolute;
    left: 0;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.checkbox-animated label .box {
    border: 2px solid var(--md-blue-dark); /* Kutu sınırı koyu mavi */
    height: 20px;
    width: 20px;
    z-index: 888;
    -webkit-transition-delay: 0.2s;
    -moz-transition-delay: 0.2s;
    transition-delay: 0.2s;
}
.checkbox-animated label .check {
    top: -7px;
    left: 6px;
    width: 12px;
    height: 24px;
    border: 2px solid var(--md-blue-medium); /* Tik rengi orta mavi */
    border-top: none;
    border-left: none;
    opacity: 0;
    z-index: 888;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
    -webkit-transition-delay: 0.3s;
    -moz-transition-delay: 0.3s;
    transition-delay: 0.3s;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================================================= */
/* --- Yazar ve Blog Görsel Efektleri --- */
/* ========================================================================= */

.creater-icon {
    font-size: 100px;
    color: var(--md-blue-dark); /* Koyu mavi simge */
    padding: 20px;
    border-radius: 50%;
    border: 3px solid var(--md-blue-dark); /* Koyu mavi sınır */
    transition: transform var(--transition-speed) ease-in-out;
}

.creater-icon:hover {
    transform: scale(1.1); /* Büyüme hafif artırıldı */
    box-shadow: 0 0 10px rgba(0, 74, 127, 0.4);
}

.blog-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.blog-author {
    width: 140px;
    height: 140px;
    position: absolute;
    right: 20px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -65px;
    margin-bottom: 0px;
    border: 4px solid #FFFFFF; /* Beyaz sınır */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease-in-out;
}

.blog-author:hover {
    transform: scale(1.1); /* Büyüme hafif artırıldı */
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5); /* Hafif mavi parlama */
}

.event-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ========================================================================= */
/* -------------------- Custom Radio Buttons (Funkyradio) -----------------------*/
/* ========================================================================= */

.funkyradio label {
    min-width: 400px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #D1D3D4;
    font-weight: normal;
    transition: all var(--transition-speed) ease-in-out;
}

/* ... Diğer funkyradio kuralları korundu (Sadece renkler güncellenebilir) ... */
.funkyradio input[type="radio"]:empty ~ label:before, .funkyradio input[type="checkbox"]:empty ~ label:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content:'';
    width: 2.5em;
    background: #D1D3D4;
    border-radius: 5px 0 0 5px;
    transition: background-color var(--transition-speed) ease-in-out;
}
.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before, .funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
    text-indent: .9em;
    color: #A9BCCF; /* Hover'da açık mavi/gri */
}
.funkyradio input[type="radio"]:hover:not(:checked) ~ label, .funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
    color: var(--md-blue-medium); /* Hover'da orta mavi */
}
.funkyradio input[type="radio"]:checked ~ label:before, .funkyradio input[type="checkbox"]:checked ~ label:before {
    content:'\1f5f8';
    text-indent: .9em;
    color: #fff;
    background-color: var(--md-blue-dark); /* Seçili renk koyu mavi */
}
.funkyradio input[type="radio"]:checked ~ label, .funkyradio input[type="checkbox"]:checked ~ label {
    color: var(--md-blue-dark); /* Seçili metin koyu mavi */
}
.funkyradio input[type="radio"]:focus ~ label:before, .funkyradio input[type="checkbox"]:focus ~ label:before {
    box-shadow: 0 0 0 3px var(--md-accent); /* Focus turuncu */
}

/* Funkyradio Durum Renkleri (Mavi Tonlara Odaklandı) */
.funkyradio-default input[type="radio"]:checked ~ label:before, .funkyradio-default input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: var(--md-blue-light); /* Açık Mavi */
}
.funkyradio-primary input[type="radio"]:checked ~ label:before, .funkyradio-primary input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: var(--md-blue-dark); /* Koyu Mavi */
}
.funkyradio-success input[type="radio"]:checked ~ label:before, .funkyradio-success input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5cb85c; /* Yeşil korundu (başarı) */
}
.funkyradio-danger input[type="radio"]:checked ~ label:before, .funkyradio-danger input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #d9534f; /* Kırmızı korundu (tehlike) */
}
.funkyradio-warning input[type="radio"]:checked ~ label:before, .funkyradio-warning input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: var(--md-accent); /* Turuncu/Warning */
}
.funkyradio-info input[type="radio"]:checked ~ label:before, .funkyradio-info input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: var(--md-blue-medium); /* Orta Mavi */
}

/*------------------------*/

h1, h2, h3, h4, h5, h6, p, a, ul, span, li, img, inpot, button{ margin: 0; padding: 0; }

/* ========================================================================= */
/* --- Diğer Bileşenler ve Butonlar --- */
/* ========================================================================= */

.voter-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-speed) ease-in-out;
}

.voter-avatar:hover {
    transform: scale(1.15); /* Büyüme artırıldı */
}

.empty-img {
    width: 80px;
    height: 80px;
}

.profile-empty-img {
    height: 100px;
}


.signup-left {
    top: 25%;
}

.social-icon {
    background: var(--md-blue-medium); /* Orta Mavi */
    color: white;
    padding: 20px;
    margin: 10px;
    width: 75px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    transition: background var(--transition-speed) ease-in-out;
}

.social-icon:hover {
    background: var(--md-blue-dark); /* Koyu mavi */
}

.social-icon:active {
    background: var(--md-accent); /* Turuncu */
}

.login-icons {
    right: 25%;
    left: 25%;
}

#card-admin-badge {
    width: 40px;
    position: absolute;
    margin-top: 30px;
    margin-left: -40px;
}

.navbar .fa {
    color: #999999; /* Açık gri korundu */
    transition: color var(--transition-speed) ease-in-out;
}

.navbar .fa:hover {
    color: var(--md-accent); /* Turuncu korundu */
}

.card-user-cover {
    height: 100px;
    object-fit: cover;
}

.btn-warning {
    background-color: var(--md-accent); /* Turuncu */
    color: white;
    transition: background-color var(--transition-speed) ease-in-out;
}

.btn-warning:hover {
    background-color: var(--md-accent-hover); /* Hafif turuncu */
}

.card-profile .fa {
    color: #777; /* Koyu gri */
    transition: color var(--transition-speed) ease-in-out;
}

.card-profile .fa:hover {
    color: var(--md-accent); /* Turuncu */
}