/* =============================================
   Galeri - Sanat Galerisi CSS
   Zarif & Minimalist Tasarım
============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Resim koruma - seçilemez */
.protected-image {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.artwork-image {
    position: relative;
    overflow: hidden;
}

.artwork-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

/* =============================================
   Header
============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 30px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* =============================================
   Main Content
============================================= */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   Hero Section
============================================= */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 40px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background: #333;
}

/* =============================================
   Artworks Grid
============================================= */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.artwork-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.artwork-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.artwork-card-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
}

.artwork-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.artwork-card:hover .artwork-card-image img {
    transform: scale(1.05);
}

.artwork-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.artwork-card:hover .artwork-card-overlay {
    opacity: 1;
}

.artwork-card-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.artwork-card:hover .artwork-card-overlay .btn {
    transform: translateY(0);
}

.artwork-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 15;
}

.artwork-card-badge.sold {
    background: #dc3545;
    color: white;
}

.artwork-card-content {
    padding: 24px;
}

.artwork-card-artist {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.artwork-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.artwork-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.artwork-card-price {
    font-weight: 600;
    color: var(--primary);
}

/* =============================================
   Artists Grid
============================================= */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.artist-card {
    text-align: center;
}

.artist-card-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 3px solid var(--border);
    transition: all 0.3s ease;
}

.artist-card:hover .artist-card-image {
    border-color: var(--accent);
    transform: scale(1.05);
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-card h4 {
    margin-bottom: 8px;
}

.artist-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   Artwork Detail Page
============================================= */
.artwork-detail {
    padding: 60px 0;
}

.artwork-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.artwork-detail-image {
    position: relative;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
}

.artwork-detail-image img {
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Watermark overlay */
.artwork-detail-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(0,0,0,0.01) 100px,
        rgba(0,0,0,0.01) 200px
    );
    pointer-events: none;
    z-index: 5;
}

.artwork-detail-info h1 {
    margin-bottom: 16px;
}

.artwork-detail-artist {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 30px;
}

.artwork-detail-artist a:hover {
    text-decoration: underline;
}

.artwork-meta-table {
    margin-bottom: 30px;
}

.artwork-meta-table tr {
    border-bottom: 1px solid var(--border);
}

.artwork-meta-table td {
    padding: 12px 0;
}

.artwork-meta-table td:first-child {
    color: var(--text-light);
    width: 140px;
}

.artwork-detail-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

.artwork-detail-description {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.9;
}

/* =============================================
   Contact Form
============================================= */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group label span {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* =============================================
   Footer
============================================= */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =============================================
   Alert Messages
============================================= */
.alert {
    padding: 16px 24px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   Page Header
============================================= */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 1024px) {
    .artwork-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        height: auto;
        padding: 120px 20px 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .artworks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

