/* stil.css */

/* Temel Ayarlar ve Değişkenler */
:root {
    --arka-plan: #121212;
    --yuzey: #1E1E1E;
    --ana-renk: #BB86FC;
    --ana-renk-variant: #3700B3;
    --ikincil-renk: #03DAC6;
    --metin-rengi: rgba(255, 255, 255, 0.87);
    --metin-rengi-hafif: rgba(255, 255, 255, 0.6);
    --kenarlik-rengi: rgba(255, 255, 255, 0.12);
}
/* Usta Detay Sayfası Stilleri */
.usta-profil-sayfasi {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.profil-sol .profil-karti {
    background-color: var(--yuzey);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    position: sticky; /* Sayfa kaydırıldığında soldaki kartın sabit kalması için */
    top: 2rem;
}

.profil-sol .profil-karti img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--ana-renk);
    object-fit: cover;
    margin-bottom: 1rem;
}

.profil-sol .profil-karti h2 {
    margin-bottom: 0.25rem;
}

.profil-sol .profil-karti .kategori {
    color: var(--ana-renk);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profil-sol .profil-karti .konum {
    color: var(--metin-rengi-hafif);
    margin-bottom: 1rem;
}

.profil-sol .profil-karti .puan-ve-yorum {
    margin-bottom: 1.5rem;
}

.profil-sol .iletisim-bilgileri .buton {
    display: block;
    width: 100%;
}

.profil-sag .content-box {
    background-color: var(--yuzey);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profil-sag .content-box h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--kenarlik-rengi);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.yorum-karti {
    border-bottom: 1px solid var(--kenarlik-rengi);
    padding: 1.5rem 0;
}
.yorum-karti:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.yorum-karti:first-child {
    padding-top: 0;
}

.yorum-yapan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.yorum-yapan strong {
    font-size: 1.1rem;
}
.yorum-yapan span {
    font-size: 0.85rem;
    color: var(--metin-rengi-hafif);
}
.yorum-puan {
    margin-bottom: 0.5rem;
    color: #ffc107; /* Yıldız rengi */
}

/* Yorum Yapma Formu */
.content-box .form-grup { margin-bottom: 1rem; }
.content-box .form-grup label { display: block; margin-bottom: 0.5rem; }
.content-box .form-grup textarea,
.content-box .form-grup select {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid var(--kenarlik-rengi);
    color: var(--metin-rengi);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.content-box.uyari {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

/* Mobil için düzenleme */
@media (max-width: 900px) {
    .usta-profil-sayfasi {
        grid-template-columns: 1fr;
    }
    .profil-sol .profil-karti {
        position: static; /* Mobilde kart sabit kalmasın */
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--arka-plan);
    color: var(--metin-rengi);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--yuzey);
    padding: 1rem 0;
    border-bottom: 1px solid var(--kenarlik-rengi);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--metin-rengi);
    text-decoration: none;
}

header .menu a {
    color: var(--metin-rengi-hafif);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

header .menu a:hover {
    color: var(--metin-rengi);
}

/* Butonlar */
.buton, .buton-kucuk {
    background-color: var(--ana-renk);
    color: #000;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buton:hover {
    background-color: var(--ana-renk-variant);
    color: #fff;
}

.buton-kucuk {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Ana Sayfa Hero Alanı */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/resimler/arka-plan.jpg'); /* Arka plana uygun bir resim ekleyin */
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--metin-rengi-hafif);
    margin-bottom: 2rem;
}

/* Arama Formu */
.arama-formu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: var(--yuzey);
    padding: 1.5rem;
    border-radius: 8px;
}

.arama-formu .form-grup {
    flex: 1;
}

.arama-formu select {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid var(--kenarlik-rengi);
    color: var(--metin-rengi);
    border-radius: 5px;
}

/* Ustalar Listesi */
.ustalar-listesi {
    padding: 4rem 0;
}

.ustalar-listesi h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.ustalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.usta-karti {
    background-color: var(--yuzey);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--kenarlik-rengi);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usta-karti:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.usta-karti img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ana-renk);
    margin-bottom: 1rem;
}

.usta-karti h3 {
    margin-bottom: 0.25rem;
    color: var(--metin-rengi);
}

.usta-karti .kategori {
    color: var(--ana-renk);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.usta-karti .konum {
    color: var(--metin-rengi-hafif);
    margin-bottom: 1rem;
}
.usta-karti .puan-ve-yorum {
    margin-bottom: 1.5rem;
    color: var(--metin-rengi-hafif);
}

/* Footer Ayarları */
footer {
    padding: 2rem 0;
    background-color: var(--yuzey);
    border-top: 1px solid var(--kenarlik-rengi);
    margin-top: 4rem; /* Main alanı ile arasına boşluk koyar */
}

footer .container {
    text-align: center; /* İçindeki her şeyi ortalar */
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--metin-rengi-hafif);
}

footer a {
    color: var(--ikincil-renk);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Form Sayfaları İçin Genel Stiller */
.sayfa-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.form-kutusu {
    background-color: var(--yuzey);
    padding: 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--kenarlik-rengi);
}

.form-kutusu h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--metin-rengi);
}

.form-kutusu p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--metin-rengi-hafif);
}

.form-grup {
    margin-bottom: 1.5rem;
}

.form-grup label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--metin-rengi-hafif);
}

.form-grup input {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid var(--kenarlik-rengi);
    color: var(--metin-rengi);
    border-radius: 5px;
    font-size: 1rem;
}

.buton.tam-genislik {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-alti-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--metin-rengi-hafif);
}

.form-alti-link a {
    color: var(--ikincil-renk);
    font-weight: bold;
}

/* Mesaj Kutuları (Hata/Başarı) */
.mesaj {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.mesaj.hata {
    background-color: #5c1a1a;
    color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.mesaj.basari {
    background-color: #1a5c3a;
    color: #d4edda;
    border: 1px solid #c3e6cb;
}

/* Profil Sayfası Stilleri */
.profil-kutusu {
    background-color: var(--yuzey);
    padding: 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--kenarlik-rengi);
    text-align: center;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .arama-formu {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
}