/* ============================
   BuLuYo.com - Ana Stilller
   ============================ */

:root {
    --green-500: #00a651;
    --green-600: #008c44;
    --green-700: #007338;
    --green-50: #e8f8ef;
    --green-100: #c6f0d9;
    --green-300: #a8e9c5;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #868e96;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --white: #ffffff;
    --pink: #f69085;
    --danger: #e74c3c;
    --warning: #f39c12;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-50) 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
    padding-top: 20px;
}

/* ============================
   Top Navigation
   ============================ */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    border-color: var(--green-500);
    color: var(--green-600);
    background: var(--green-50);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    text-decoration: none;
}

.nav-credits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
}

.nav-credits i {
    font-size: 0.75rem;
}

.nav-logout {
    color: var(--gray-500);
    border-color: var(--gray-200);
}

.nav-logout:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: #fef2f2;
}

/* ============================
   App Container
   ============================ */
.app-container {
    width: 100%;
    max-width: 680px;
    padding: 8px 16px 70px;
}

/* ============================
   Logo
   ============================ */
.logo-section {
    display: flex;
    /* Elemanları yan yana tek satıra dizer */
    align-items: center;
    /* İkon ve yazıyı dikeyde kusursuz ortalar */
    justify-content: center;
    /* Logoyu sayfada yatay olarak ortalar */
    margin-bottom: 14px;
    margin-right: 20px;
}

/* Doğrudan logo içindeki ikonu hedefleyip boyutlandırıyoruz */
.logo-section .bi-search {
    font-size: 2.2rem;
    /* Bootstrap'in fs-3 boyutuna denk gelen ölçü */
    margin-right: 12px;
    color: #007338;
    /* İkon ile yazı arasındaki boşluk */
    font-weight: bold;
    /* İkonun daha belirgin görünmesini sağlar */
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--green-500);
    letter-spacing: -1px;
    margin: 0;
    /* h1'in varsayılan dış boşluklarını sıfırlar */
}

.logo span {
    color: var(--gray-700);
}

/* ============================
   Search Bar
   ============================ */
.search-container {
    margin-bottom: 12px;
}

.search-bar {
    display: flex;
    align-items: flex-start;
    background: var(--white);
    border: 2px solid black;
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
    border-color: black;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

/* ============================
   Icon Buttons
   ============================ */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
    font-size: 1.15rem;
    position: relative;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--gray-100);
    color: var(--green-600);
}

.icon-btn:active {
    transform: scale(0.92);
}

.phone-btn {
    color: var(--gray-500);
}

.phone-btn:hover {
    color: var(--green-600);
}

.image-btn {
    color: var(--gray-500);
}

.audio-btn {
    color: var(--gray-500);
}

.search-btn {
    background: var(--green-500) !important;
    color: var(--white) !important;
    border-radius: var(--radius-full);
}

.search-btn:hover {
    background: var(--green-600) !important;
}

.add-badge {
    font-size: 0.6rem;
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--green-500);
}

/* ============================
   Search Input
   ============================ */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 0 8px;
    min-width: 0;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    overflow-y: hidden;
    background: transparent;
    color: var(--gray-700);
    max-height: 150px;
    padding: 12px 0;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* ============================
   Tagline
   ============================ */
.tagline {
    text-align: center;
    margin-bottom: 16px;
}

.tagline span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: black;
    /*text-transform: uppercase;*/
}

/* ============================
   Category Marquee
   ============================ */
.category-marquee-wrapper {
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.category-marquee {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

/*
.category-marquee:hover {
    animation-play-state: paused;
}
*/

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.category-card {
    flex-shrink: 0;
    width: 145px;
    padding: 18px 12px 14px;
    background: var(--card-bg, var(--gray-50));
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200, var(--green-100));
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--black, var(--gray-700));
}

.card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.3;
}

/* ============================
   Media Preview
   ============================ */
.media-preview {
    margin-top: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.media-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-100);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item audio {
    width: 100%;
    padding: 8px;
}

.media-item .media-type-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.media-item .delete-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition);
    opacity: 0;
}

.media-item:hover .delete-media {
    opacity: 1;
}

.media-item .delete-media:hover {
    background: #c0392b;
}

/* ============================
   Audio Recorder
   ============================ */
.audio-recorder {
    margin-top: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--danger);
}

.recorder-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--danger);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: var(--radius-full);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.stop-btn {
    color: var(--danger) !important;
    font-size: 1.5rem;
}

/* ============================
   Password Field
   ============================ */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 42px;
}

.toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.toggle-pass:hover {
    color: var(--green-600);
}

/* ============================
   Modals
   ============================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease;
}

.modal-sm {
    max-width: 360px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 20px;
}

.modal-body.center {
    text-align: center;
}

/* ============================
   Form Elements
   ============================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--green-600);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-600);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 0.85rem;
}

/* ============================
   Confirm Modal
   ============================ */
.confirm-info {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-500);
    min-width: 80px;
    font-size: 0.85rem;
}

.info-value {
    color: var(--gray-700);
    font-size: 0.85rem;
    word-break: break-word;
}

.credit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.85rem;
    text-align: center;
}

.credit-warning i {
    margin-right: 4px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================
   Success Modal
   ============================ */
.success-icon {
    font-size: 3.5rem;
    color: var(--green-500);
    margin-bottom: 12px;
}

.success-icon i {
    display: block;
}

/* ============================
   Phone Modal
   ============================ */
.phone-icon-lg {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 12px;
}

.phone-icon-lg i {
    display: block;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 20px;
}

/* ============================
   Contact Preferences
   ============================ */
.contact-preferences {
    margin-bottom: 16px;
}

.contact-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.contact-subtitle {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.contact-card {
    position: relative;
    cursor: pointer;
}

.contact-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.contact-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 14px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card-inner:hover {
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-checkbox:checked+.contact-card-inner {
    border-color: var(--green-500);
    background: var(--green-50);
}

.contact-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--white);
    transition: var(--transition);
}

.contact-checkbox:checked+.contact-card-inner .contact-check {
    background: var(--green-500);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.whatsapp-icon {
    background: #25D366;
}

.telefon-icon {
    background: #e74c3c;
}

.eposta-icon {
    background: #3498db;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ============================
   Switch Link
   ============================ */
.switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.switch-link a {
    color: var(--green-600);
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* ============================
   Utilities
   ============================ */
.hidden {
    display: none !important;
}

/* ============================
   Responsive - Mobile First
   ============================ */
@media (max-width: 480px) {
    .logo {
        font-size: 2.2rem;
    }

    .app-container {
        padding: 8px 12px 20px;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .search-icons {
        gap: 0;
    }

    .top-nav {
        gap: 6px;
    }

    .nav-link,
    .nav-user,
    .nav-credits {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .modal-content {
        border-radius: var(--radius-md);
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .category-card {
        width: 120px;
        padding: 14px 8px 12px;
    }

    .card-icon {
        font-size: 1.8rem;
    }

    .card-label {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .logo {
        font-size: 3.5rem;
    }

    .category-card {
        width: 160px;
    }
}

/* ============================
   Sticky Footer
   ============================ */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.75rem;
    color: black;
}

.footer-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: black;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.footer-link:hover {
    color: green;
}

.footer-link i {
    font-size: 0.85rem;
}

/* ============================
   Help Modal
   ============================ */
.help-icon {
    font-size: 3rem;
    color: var(--green-500);
    margin-bottom: 12px;
}

.help-icon i {
    display: block;
}

.help-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.5;
}

.help-steps {
    text-align: left;
    margin-bottom: 20px;
}

.help-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.help-step:last-child {
    border-bottom: none;
}

.help-step-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.help-step span {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* --- Ana Buton Stilleri --- */
.gonder-butonu {
    background-color: transparent;
    /* Butonun arkaplanı şeffaf, metin ve simge görünür */
    border: 1px solid gray;
    /* Siyah bir çerçeve ekle */
    border-radius: 50px;
    padding: 5px 10px;
    /* Butona biraz boşluk ver */
    cursor: pointer;
    display: flex;
    align-items: center;
    /* Metin ve simgeyi dikey olarak ortala */
    gap: 5px;
    /* Metin ile simge arasındaki boşluk */
    transition: background-color 0.3s ease;
    /* Hover efekti için geçiş */
}

.gonder-butonu:hover {
    background-color: rgba(0, 0, 0, 0.05);
    /* Hafif bir hover efekti */
    border-radius: 50px;
}

/* --- Metin Stili --- */
.gonder-butonu .yazi {
    color: black;
    font-size: 12px;
    /* Görseldeki büyük boyutu taklit eder */
    font-weight: 700;
    /* Kalın metin */
    margin: 0;
}

/* --- Simge Çerçevesi --- */
.gonder-butonu .ikon-cercevesi {
    background-color: #28a745;
    /* Görseldeki yeşil renk */
    width: 30px;
    /* Çerçevenin boyutu (simgeden büyük olmalı) */
    height: 30px;
    border-radius: 50%;
    /* Tam yuvarlak */
    display: flex;
    justify-content: center;
    align-items: center;
    /* İsteğe bağlı: Simgeye 3D bir görünüm için çok hafif bir gölge */
}

/* --- Simgenin Kendisi --- */
.gonder-butonu .ikon-cercevesi i {
    color: white;
    /* Simge rengi beyaz */
    font-size: 18px;
    /* Simge boyutu */
    /* --- İstediğiniz Özellik: Sağa doğru 45 derece döndürme --- */
    transform: rotate(45deg);
    /* Döndürme işleminin simgenin merkezinde gerçekleşmesini sağla */
    transform-origin: center center;
    /* Simgeyi mükemmel ortalamak için küçük bir kaydırma */
    position: relative;
    left: -2px;
    top: 0px;
}