/* ================= CSS RESET & BASE ================= */
* {
    box-sizing: border-box;
}

body, h1, h2, p, a {
    margin: 0;
    padding: 0;
    color: #e2e0d5;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    background-color: #0F1A2B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #FFFFFF; }

/* ================= HEADER ================= */
header#home {
    background-color: #0F1A2B;
    padding: 1rem;
    text-align: center;
}

header#home h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header#home h1 span {
    color: #DFBE6E;
}

header#home p {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* ================= MAIN (ANA İÇERİK) ================= */
main {
    padding: 2rem;
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

h2#projects-title {
    font-size: 2rem;
    text-align: center;
    color: #DFBE6E;
    margin-bottom: 30px;
}

/* ================= PROJECTS GRID & CARDS ================= */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(223, 190, 110, 0.15);
    padding: 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #DFBE6E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Kart Başlığı ve Badge Hizalaması */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.project-card h3 {
    color: #DFBE6E;
    font-size: 1.4rem;
    margin: 0;
}

/* Kategori Badge Stilleri */
.badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Manipulate! (Chrome Ext) Rengi */
.badge.extension {
    background: rgba(168, 178, 209, 0.1);
    color: #a8b2d1;
    border: 1px solid #a8b2d1;
}

/* SitePulse Direct (Self-Hosted) Rengi */
.badge.hosted {
    background: rgba(223, 190, 110, 0.1);
    color: #DFBE6E;
    border: 1px solid #DFBE6E;
}

/* SitePulse Analytics (Google API) Rengi */
.badge.google {
    background: rgba(66, 133, 244, 0.1);
    color: #4facfe;
    border: 1px solid #4facfe;
}

.project-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.project-card .read-more {
    font-size: 0.85rem;
    font-weight: bold;
    color: #DFBE6E;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .read-more {
    opacity: 1;
}

/* ================= BACK LINK & SVG ================= */
.back-link-container {
    text-align: center;
    margin-top: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #DFBE6E !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link svg {
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: #FFFFFF !important;
}

.back-link:hover svg {
    transform: translateY(-2px);
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: #0c1522;
    color: #8892b0;
    padding: 30px 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(223, 190, 110, 0.1);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.footer-text strong {
    color: #DFBE6E;
    font-weight: 600;
}

.footer-line {
    width: 100px;
    height: 2px;
    background: #DFBE6E;
    margin-top: 20px;
    opacity: 0.5;
    border-radius: 2px;
}

/* ================= MOBİL UYUMLULUK ================= */
@media screen and (max-width: 768px) {
    main { padding: 1rem; }
    header#home h1 { font-size: 2rem; }
}

@media screen and (max-width: 600px) {
    .project-card { padding: 20px; }
    .project-card h3 { font-size: 1.2rem; }
}