/**
 * Major Garage - Custom Styles
 * Bu dosya tema dışında özel stiller içerir
 */

/* ==================== Language Switcher ==================== */
.language-switcher {
    display: inline-flex;
    gap: 5px;
    margin-right: 15px;
}

.lang-link {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    background: var(--secondary-color, #3182ce);
    color: white;
}

/* ==================== Gallery Section ==================== */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gallery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color, #3182ce);
    border-radius: 50%;
    font-size: 1rem;
}

/* Tablet için */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .gallery-image-wrapper {
        aspect-ratio: 1/1;
    }
}

/* Mobil için */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        padding: 15px;
    }
    
    .gallery-content {
        transform: translateY(0);
    }
    
    .gallery-content h4 {
        font-size: 0.95rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .gallery-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* ==================== Contact Page Styles ==================== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card,
.contact-form-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-info-card h2,
.contact-form-card h3 {
    color: var(--primary-color, #1a365d);
    margin-bottom: 20px;
}

.contact-intro {
    color: #718096;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color, #1a365d);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-text a,
.contact-text p {
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--secondary-color, #3182ce);
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.contact-social .social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color, #3182ce);
    color: white;
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25d366;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.contact-form-card .required {
    color: #e53e3e;
}

.contact-form-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    outline: none;
    border-color: var(--secondary-color, #3182ce);
}

.contact-form-card select.form-control {
    height: 48px;
}

.form-note {
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 15px;
}

.form-note i {
    color: #48bb78;
}

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
}

.alert i {
    font-size: 1.2rem;
}

.map-section {
    margin-top: 40px;
}

.map-container iframe {
    display: block;
    filter: grayscale(20%);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
}

/* ==================== Service Image Styles ==================== */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ==================== Print Styles ==================== */
@media print {
    .top-bar,
    .main-header,
    .main-footer,
    .back-to-top,
    .whatsapp-btn,
    .gallery-section {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
}

/* ==================== Loading Spinner ==================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Image Placeholders ==================== */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 3rem;
}

/* ==================== Table Styles ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.data-table tr:hover {
    background: #f7fafc;
}

/* ==================== Badge Styles ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-warning {
    background: #fefcbf;
    color: #744210;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.badge-info {
    background: #bee3f8;
    color: #2a4365;
}

/* ==================== Card Styles ==================== */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

/* ==================== Modal Styles ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
}

.modal-close:hover {
    color: #2d3748;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.pagination a {
    background: #f7fafc;
    color: #2d3748;
}

.pagination a:hover {
    background: #3182ce;
    color: white;
}

.pagination .current {
    background: #3182ce;
    color: white;
}

/* ==================== Admin Quick Link ==================== */
.admin-quick-link {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2d3748;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.admin-quick-link:hover {
    background: #1a202c;
    transform: translateY(-3px);
}
