/* ==========================================================================
   Cezve Kahve Kavurma - Custom Stylesheet
   Warm coffee tones, smooth animations, elegant typography
   ========================================================================== */

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scroll Reveal Animations ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }
.scroll-reveal.delay-5 { transition-delay: 0.5s; }

/* ---------- Hero Section ---------- */
.hero-gradient {
    background: linear-gradient(135deg, #3C1518 0%, #69140E 40%, #3C1518 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Coffee Bean Decorative Element ---------- */
.coffee-bean::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 18px;
    background: #D4A574;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ---------- Card Hover Effects ---------- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(60, 21, 24, 0.15);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, #D4A574, #DEB887);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Divider ---------- */
.section-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(to right, #D4A574, #DEB887);
    border: none;
    margin: 0 auto;
}

.section-divider-left {
    margin: 0;
}

/* ---------- Roast Level Indicator ---------- */
.roast-meter {
    height: 6px;
    border-radius: 3px;
    background: #F5DEB3;
    overflow: hidden;
}

.roast-meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(to right, #D4A574, #8B4513, #3C1518);
    transition: width 1s ease-out;
}

/* ---------- Smooth Image Zoom ---------- */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* ---------- Button Styles ---------- */
.btn-primary {
    background-color: #3C1518;
    color: #FFF8F0;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #69140E;
    box-shadow: 0 10px 30px rgba(60, 21, 24, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #D4A574;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid #D4A574;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #D4A574;
    color: #3C1518;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

/* ---------- Form Input Styles ---------- */
.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #DEB887;
    border-radius: 12px;
    background: #FFF8F0;
    color: #3C1518;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #D4A574;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.form-input::placeholder {
    color: #B8860B;
    opacity: 0.6;
}

textarea.form-input {
    resize: vertical;
    min-height: 140px;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: #D4A574;
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: 15px;
    line-height: 1;
}

/* ---------- Process Step ---------- */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #D4A574, transparent);
}

.process-step:last-child::after {
    display: none;
}

/* ---------- Pulse Animation ---------- */
@keyframes pulse-warm {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 165, 116, 0); }
}

.pulse-warm {
    animation: pulse-warm 2s infinite;
}

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

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

/* ---------- Steam Animation ---------- */
@keyframes steam {
    0% { opacity: 0; transform: translateY(0) scaleX(1); }
    15% { opacity: 1; }
    50% { opacity: 0.6; transform: translateY(-30px) scaleX(1.5); }
    100% { opacity: 0; transform: translateY(-60px) scaleX(2); }
}

.steam-line {
    position: absolute;
    width: 3px;
    height: 20px;
    background: rgba(255, 248, 240, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    animation: steam 2s ease-out infinite;
}

.steam-line:nth-child(2) { animation-delay: 0.4s; left: 10px; }
.steam-line:nth-child(3) { animation-delay: 0.8s; left: 20px; }

/* ---------- Badge Styles ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: #D4A574;
    color: #3C1518;
}

.badge-popular {
    background: #69140E;
    color: #FFF8F0;
}

.badge-limited {
    background: #3C1518;
    color: #D4A574;
}

/* ---------- Smooth Scrolling ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- Selection Color ---------- */
::selection {
    background: #D4A574;
    color: #3C1518;
}

::-moz-selection {
    background: #D4A574;
    color: #3C1518;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }

    .hero-gradient {
        min-height: 80vh;
    }
}

/* ---------- Loading Skeleton ---------- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #F5DEB3 25%, #FFF8F0 50%, #F5DEB3 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ---------- Image Placeholder Gradient ---------- */
.img-placeholder {
    background: linear-gradient(135deg, #3C1518, #69140E, #8B4513, #D4A574);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ===== Overflow / Tasma Korumasi ===== */
body {
    overflow-x: hidden;
}

*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
