/* ========================================
   CUSTOM.CSS - ORTAK STILLER
   Tüm sayfalarda kullanılan ortak CSS kuralları
   ======================================== */

/* custom.css — yalnızca sayfa-özel stiller (global reset style.css'te) */

/* ========================================
   BREADCRUMB - Tüm sayfalarda ortak
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========================================
   PAGE HEADER - Ortak sayfa başlığı
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #FFE0F0 0%, #E0F7FF 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-left h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* ========================================
   FORM ELEMENTS - Ortak form stilleri
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   BUTTONS - Ortak buton stilleri
   ======================================== */
.btn-submit,
.btn-login {
    background: var(--orange);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-submit:hover,
.btn-login:hover {
    background: #FF9933;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 119, 0, 0.3);
}

.btn-chat {
    background: var(--orange);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 119, 0, 0.3);
}

/* ========================================
   NEWSLETTER BOX - Ortak newsletter kutusu
   ======================================== */
.newsletter-box-orange {
    background: linear-gradient(135deg, var(--orange), #FF9933);
    padding: 50px 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-toys {
    display: flex;
    gap: 15px;
}

.newsletter-toys img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
}

.newsletter-content-center {
    flex: 1;
    text-align: center;
}

.newsletter-content-center h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-form-inline {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form-inline input {
    flex: 1;
    max-width: 350px;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form-inline button {
    padding: 15px 40px;
    background: var(--white);
    color: var(--orange);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-inline button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SECTION HEADERS - Ortak section başlıkları
   ======================================== */
.section-header,
.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2,
.faq-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle,
.faq-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================================
   FEATURE ITEMS - Ortak özellik kartları
   ======================================== */
.features-list-modern {
    display: grid;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--orange);
    box-shadow: var(--shadow);
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   QUALITY & CLIENT ITEMS - Kalite ve müşteri kartları
   ======================================== */
.quality-item,
.client-logo {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.quality-item:hover,
.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quality-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFE0F0, #E0F7FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--orange);
}

.quality-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   CHECKBOX & RADIO - Ortak form elemanları
   ======================================== */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 8px;
}

.checkbox-label:hover,
.radio-label:hover {
    background: var(--white);
}

.checkbox-label input,
.radio-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   FLOATING ANIMATIONS
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.deco-shape {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */
@media (max-width: 1024px) {
    .page-header-left h1 {
        font-size: 1.6rem;
    }
    
    .newsletter-box-orange {
        padding: 40px 30px;
    }
    
    .section-header h2,
    .faq-header h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 768px) {
    .page-header-left h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 18px;
    }
    
    .btn-submit,
    .btn-login {
        padding: 15px 40px;
        font-size: 0.95rem;
    }
    
    .newsletter-box-orange {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .newsletter-toys {
        display: none;
    }
    
    .newsletter-content-center h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form-inline input {
        max-width: 100%;
    }
    
    .section-header h2,
    .faq-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
}

/* ========================================
   ANIMATIONS - Slide & Fade
   ======================================== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   IMAGE LIGHTBOX - Ürün resim zoom
   ======================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.image-lightbox.active {
    background: rgba(0, 0, 0, 0.25);
    opacity: 1;
    backdrop-filter: blur(10px);
}

.image-lightbox.closing {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-lightbox.active .lightbox-content {
    transform: scale(1);
}

.image-lightbox.closing .lightbox-content {
    transform: scale(0.8);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100001;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Mobile Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* ========================================
   FLASH ALERT — ortalı, 3sn sonra kaybol
   ======================================== */
.modal-message {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    min-width: 320px;
    max-width: 520px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 18px 24px 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: alertSlideDown .35s cubic-bezier(.22,.68,0,1.2) both;
    pointer-events: auto;
}
.modal-message.hiding {
    animation: alertFadeUp .35s ease forwards;
}
.modal-message-inner {
    flex: 1;
}
.modal-message h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}
.modal-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: .9;
}
.modal-message #closeM {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}
.modal-message #closeM:hover { opacity: 1; }

/* success */
.modal-message.modal-success {
    background: #1e7e34;
    color: #fff;
    border-left: 5px solid #28a745;
}
/* error */
.modal-message.modal-error,
.modal-message.modal-danger {
    background: #c0392b;
    color: #fff;
    border-left: 5px solid #e74c3c;
}
/* warning */
.modal-message.modal-warning {
    background: #e67e22;
    color: #fff;
    border-left: 5px solid #f39c12;
}
/* info (fallback) */
.modal-message.modal-info {
    background: #2980b9;
    color: #fff;
    border-left: 5px solid #3498db;
}

@keyframes alertSlideDown {
    from { opacity:0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0);     }
}
@keyframes alertFadeUp {
    from { opacity:1; transform: translateX(-50%) translateY(0);     }
    to   { opacity:0; transform: translateX(-50%) translateY(-16px); }
}
