/* =================================
   RESTORASYON FABRİKS - STYLE.CSS
   ================================= */

/* ROOT VARIABLES */
:root {
    --brand-yellow: #FFB400;
    --brand-dark: #1A1A1A;
    --brand-gray: #F3F4F6;
}

/* CUSTOM ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-yellow);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5a300;
}

/* HEADER SHADOW ON SCROLL */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* MOBILE MENU TRANSITIONS */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    visibility: hidden;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* FIXED BUTTONS PULSE ANIMATION */
.fixed-buttons a {
    position: relative;
}

.fixed-buttons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* DETAILS/SUMMARY CUSTOM STYLING */
details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

/* HOVER EFFECTS */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* PROSE STYLING FOR ARTICLES */
.prose h3 {
    color: var(--brand-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.prose li {
    margin: 0.5rem 0;
}

.prose strong {
    color: var(--brand-dark);
    font-weight: 600;
}

/* LOADING ANIMATION */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 180, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--brand-yellow);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE UTILITIES */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
}

/* PRINT STYLES */
@media print {
    header, footer, .fixed-buttons, #mobileMenu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* FOCUS STATES */
a:focus, button:focus {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 2px;
}

/* BUTTON STYLES */
.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e5a300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.4);
}

/* CARD STYLES */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* GRADIENT OVERLAYS */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* IMAGE LAZY LOADING */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* SKELETON LOADER */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* UTILITY CLASSES */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.object-fit-cover {
    object-fit: cover;
    object-position: center;
}