/**
 * Painter App - Main Stylesheet
 * Tüm sayfalarda kullanılan ortak stiller
 */

/* ========== CSS VARIABLES ========== */
:root {
    --primary: #1a2332;
    --secondary: #f8fafc;
    --accent: #8b5cf6;
    --warning: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --muted: #64748b;
    --primary-rgb: 26, 35, 50;
    --accent-rgb: 139, 92, 246;
    --border-radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--secondary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ========== NAVBAR ========== */
.modern-navbar {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.94) 0%, rgba(15, 23, 42, 0.94) 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    padding: 0.65rem 0;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 600;
}

.navbar-brand:hover {
    color: var(--accent) !important;
}

.navbar-logo {
    height: 45px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 92, 246, 0.18);
    color: #fff !important;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
    padding: 3rem 0;
}

.page-header h1 {
    color: #fff;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========== BUTTONS ========== */
.btn-cta {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #7b4ff2 0%, #8b5cf6 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -6px rgba(139, 92, 246, 0.45);
}

.btn-ui {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 14px;
    transition: var(--transition);
}

.btn-ui:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== SERVICE CARDS ========== */
.services-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.05);
}

.service-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.service-card-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 1;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.service-card-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Services Grid (for services.html) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.services-grid .service-card {
    flex: none;
    height: 400px;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-content {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-item-caption {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== LIGHTBOX ========== */
.lightbox-modal .modal-dialog {
    max-width: 90vw;
    margin: 1rem auto;
}

.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--accent);
}

.lightbox-nav.prev {
    left: -60px;
}

.lightbox-nav.next {
    right: -60px;
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.lightbox-counter {
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ========== FAQ ACCORDION ========== */
.accordion-button {
    font-weight: 600;
    color: var(--primary);
}

.accordion-button:not(.collapsed) {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.accordion-item {
    border: none;
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.form-floating .form-control {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
}

.form-floating .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
}

/* ========== FOOTER ========== */
.modern-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
}

.footer-title {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits {
    color: rgba(255, 255, 255, 0.5);
}

.text-accent {
    color: var(--accent) !important;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* ========== FIXED CONTACT BUTTONS ========== */
.contact-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.contact-btn.phone {
    background: var(--accent);
}

.contact-btn.whatsapp {
    background: #25D366;
}

.contact-btn:hover {
    transform: scale(1.1);
}

/* ========== LOADING STATE ========== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

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

/* Load More Button */
.load-more-btn {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: var(--dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: var(--transition);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== UTILITIES ========== */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}
