/* assets/css/components.css */

/* Buton Tasarımları */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Glassmorphism (Cam Efekti) */
.glass-effect {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.03);
}

/* Özellik Kartları */
.features-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* İstatistikler Alanı */
.stats-section {
    padding: 60px 20px;
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.05), transparent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 40px 0;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Vitrin & Discord Mockup Tasarımı */
.showcase-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.discord-mockup {
    width: 100%;
    max-width: 600px;
    background-color: #313338; /* Orijinal Discord Koyu Rengi */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transform: rotateX(2deg);
    transition: transform 0.3s ease;
}

.discord-mockup:hover {
    transform: rotateX(0deg) translateY(-5px);
    border-color: var(--primary-glow);
}

[data-theme="light"] .discord-mockup {
    background-color: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mockup-username {
    font-weight: 600;
    color: #f2f3f5;
    font-size: 1rem;
}

[data-theme="light"] .mockup-username {
    color: #060607;
}

.mockup-bot-tag {
    background-color: #5865F2;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.mockup-time {
    font-size: 0.75rem;
    color: #949ba4;
    margin-left: 5px;
}

/* --- Birebir Gerçekçi Discord Embed Yapısı --- */
.discord-embed {
    display: flex;
    flex-direction: column;
    background-color: #2b2d31; /* Discord Koyu Embed Rengi */
    border-radius: 4px;
    border-left: 4px solid var(--primary); /* Sol taraftaki neon çizgi */
    padding: 16px;
    margin-top: 5px;
    max-width: 520px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

[data-theme="light"] .discord-embed {
    background-color: #f2f3f5;
}

.embed-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.embed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbdee1;
    font-size: 0.875rem;
    font-weight: 600;
}

[data-theme="light"] .embed-author { color: #313338; }

.author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.embed-title {
    color: #00a8fc; /* Discord Link/Başlık Rengi */
    font-size: 1rem;
    font-weight: 600;
}

.embed-desc {
    color: #dbdee1;
    font-size: 0.875rem;
    line-height: 1.375;
}

[data-theme="light"] .embed-desc { color: #313338; }

.embed-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.embed-field.inline {
    flex: 1 1 45%;
    min-width: 140px;
}

.field-name {
    color: #dbdee1;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

[data-theme="light"] .field-name { color: #313338; }

.field-value {
    color: #b5bac1;
    font-size: 0.85rem;
    line-height: 1.2;
}

[data-theme="light"] .field-value { color: #4e5058; }

.embed-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.embed-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #dbdee1;
    font-size: 0.75rem;
}

[data-theme="light"] .embed-footer { color: #4e5058; }

.footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.mockup-bot-tag {
    background-color: #5865F2;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 500;
}

/* Gelişmiş Galeri Grid Yapısı */
.gallery-grid {
    display: grid;
    /* 300px yerine 280px yapıldı, mobilde ve dar ekranlarda taşmayı önler */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px;
    padding: 40px 0;
    width: 100%;
    overflow: hidden; /* Dışarı taşan ufak köşeleri gizle */
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%; /* Taşıp kartı bozmasını engeller */
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.gallery-card:hover .card-tag {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--primary);
}

/* --- Lightbox (Tam Ekran Resim Modalı) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto; /* Genişliği otomatik ayarla */
    max-width: 90%; /* Ekran genişliğinden taşmasın */
    max-height: 80vh; /* EKRANDAN TAŞMAYI ÖNLEYEN KISIM: Ekran yüksekliğinin %80'i ile sınırla */
    object-fit: contain; /* Resmin en-boy oranını bozmadan ekrana sığdır */
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
    border: 1px solid var(--primary);
    animation: zoomIn 0.3s ease;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    text-align: center;
    color: var(--text-main);
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-muted);
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Modal Açılış Animasyonu */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobil için boyutlandırma */
@media only screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}

/* --- Sistemlerin Derinlikleri (Detailed Features) --- */
.detailed-features-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.detailed-row.reverse {
    flex-direction: row-reverse;
}

.df-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    position: relative;
}

.df-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.df-image:hover img {
    transform: scale(1.05);
}

.df-text {
    flex: 1;
}

.df-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.df-list {
    list-style: none;
    padding: 0;
}

.df-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.df-icon {
    font-size: 1.4rem;
}

@media (max-width: 900px) {
    .detailed-row, .detailed-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .df-list li {
        text-align: left;
    }
}

/* --- S.S.S Alanı (FAQ) --- */
.faq-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Açıldığında X işareti olur */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: var(--text-muted);
    line-height: 1.6;
}