/* ================================================
   Evle Ayakkabılık - Modern CSS Stylesheet
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

/* ================================================
   CSS Variables
   ================================================ */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f72f65;
    --success-color: #25D366;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --container-max-width: 800px;
}

/* ================================================
   Reset & Base Styles
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Gilroy', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================================================
   Container & Layout
   ================================================ */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.main-content {
    background-color: var(--bg-light);
    box-shadow: 0 10px 40px var(--shadow-heavy);
}

@media (min-width: 810px) {
    .main-content {
        border-radius: var(--border-radius);
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ================================================
   Content Blocks
   ================================================ */
._cb {
    display: block;
    line-height: 0;
    position: relative;
    overflow: hidden;
}

._cb a {
    display: block;
    cursor: pointer;
}

.contentimg {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* Lazy Loading Animation */
.contentimg[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Hover Effects */
a ._cb .contentimg,
._cb a .contentimg {
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

a:hover ._cb .contentimg,
._cb a:hover .contentimg {
    filter: brightness(1.05);
}

/* ================================================
   Video Container
   ================================================ */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================================================
   Lightbox Styles
   ================================================ */
.jquery-lightbox.jquery-lightbox-mode-html {
    box-sizing: unset;
}

/* ================================================
   Quiz Styles (Legacy Support)
   ================================================ */
.quiz {
    text-align: center;
    border-bottom: 1px dotted #d2d2d2;
    margin-bottom: 10px;
}

.quiz label {
    max-width: 100%;
}

.quiz img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: auto;
}

.quiz input[type="radio"] {
    display: none;
}

.quiz input[type="radio"] + label {
    background: var(--bg-light);
    display: inline-block;
    padding: 5px;
    box-sizing: border-box;
}

.quiz input[type="radio"]:checked + label {
    background: #00abff;
    display: inline-block;
    padding: 5px;
    box-sizing: border-box;
}

/* ================================================
   Typography
   ================================================ */
h1 {
    font-size: clamp(24px, 4.3vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(18px, 3.5vw, 28px);
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 0.75rem;
}

/* ================================================
   Form Elements
   ================================================ */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

.araform {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: clamp(16px, 3vw, 24px);
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
    color: var(--text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.araform:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ================================================
   Credit Card Box
   ================================================ */
.credit-card-box .panel-title {
    display: inline;
    font-weight: bold;
}

.credit-card-box .form-control.error {
    border-color: red;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.6);
}

.credit-card-box label.error {
    font-weight: bold;
    color: red;
    padding: 2px 8px;
    margin-top: 2px;
}

.credit-card-box .payment-errors {
    font-weight: bold;
    color: red;
    padding: 2px 8px;
    margin-top: 2px;
}

.credit-card-box label {
    display: block;
}

.credit-card-box .display-table {
    display: table;
}

.credit-card-box .display-tr {
    display: table-row;
}

.credit-card-box .display-td {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
}

.credit-card-box .panel-heading img {
    min-width: 180px;
}

#kartbilgi {
    display: none;
}

#kartbilgi .col-sm-2 {
    width: 50%;
    font-size: 16px;
    margin-right: 15px;
}

#cardNumber-error {
    position: absolute;
    margin-left: 10px;
    color: red;
    float: right;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 4px;
}

.error-set {
    box-shadow: 0px 0px 5px red;
}

/* ================================================
   Utility Classes
   ================================================ */
.clear {
    clear: both;
}

._pr {
    position: relative;
}

._pa {
    position: absolute;
}

.bos5 {
    height: 5px;
    width: 100%;
}

/* ================================================
   Legacy Layout Support
   ================================================ */
.kutusize {
    width: 12%;
    float: left;
    margin-right: 26%;
}

.adetlers {
    width: 25%;
    float: left;
}

.sec.kutusize {
    margin-right: 0;
}

.sayaclar {
    position: absolute;
    top: 36%;
    left: 20%;
    font-size: clamp(40px, 8vw, 64px);
    width: 73%;
    font-weight: 700;
    color: #f8eb10;
}

.yorumlar {
    position: absolute;
    top: 0;
    width: 80%;
    left: 10%;
}

.yorums {
    padding: 10px;
    float: right;
    width: 46%;
}

.yres {
    width: 44%;
    float: left;
}

.contentimg50 {
    width: 49%;
    padding: 10px;
}

/* ================================================
   WhatsApp Button (Legacy - replaced with new design)
   ================================================ */
.whatsappico {
    position: fixed;
    left: -160px;
    bottom: 24px;
    width: 210px;
    font-size: 23px;
    background: var(--success-color);
    color: var(--text-light) !important;
    margin-right: 0;
    border-radius: 0 20px 20px 0;
    z-index: 999;
    padding: 10px 5px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.18);
    transition: left var(--transition-normal);
}

.whatsappico:hover {
    left: 0;
}

.whatsappico i {
    padding-top: 4px;
    padding-right: 12px;
    font-size: 28px;
    float: right;
}

.whatsappico a {
    text-decoration: none;
    padding-left: 10px;
    color: var(--text-light);
    text-align: left;
}

/* ================================================
   Animations
   ================================================ */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   Responsive Design
   ================================================ */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .adetlers {
        width: 33%;
    }
}

@media screen and (min-width: 481px) and (max-width: 809px) {
    .adetlers {
        width: 20%;
    }
}

@media screen and (min-width: 810px) {
    body {
        font-size: 16px;
    }
    
    .radio label, 
    .checkbox label {
        font-size: 16px;
    }
    
    .adetlers {
        width: 14%;
    }
}

/* ================================================
   Print Styles
   ================================================ */
@media print {
    body {
        background: white;
    }
    
    .whatsapp-btn,
    .scroll-top,
    .whatsappico {
        display: none !important;
    }
    
    .main-content {
        box-shadow: none;
    }
}

/* ================================================
   Accessibility
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}
