/* BMW Ankara Club - Ana Stil Dosyası */
/* Renk Paleti: Siyah (#000), Kırmızı (#e30000), Beyaz (#fff) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bmw-red: #e30000;
    --bmw-dark-red: #a00000;
    --bmw-black: #000;
    --bmw-gray: #333;
    --bmw-light-gray: #f5f5f5;
    --bmw-border: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--bmw-black);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.logo p {
    color: var(--bmw-red);
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--bmw-red);
    color: #fff;
}

.main-nav a.admin-link {
    background: var(--bmw-red);
    color: #fff;
}

.main-nav a.admin-link:hover {
    background: var(--bmw-dark-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bmw-black) 0%, var(--bmw-gray) 100%);
    color: #fff;
    padding: 100px 0;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(227,0,0,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bmw-red), var(--bmw-dark-red));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 0, 0, 0.4);
}

.btn-secondary {
    background: #fff;
    color: var(--bmw-black);
    border: 2px solid var(--bmw-black);
}

.btn-secondary:hover {
    background: var(--bmw-black);
    color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--bmw-black);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--bmw-red);
}

/* Categories */
.categories {
    padding: 80px 0;
    background: var(--bmw-light-gray);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(227, 0, 0, 0.2);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--bmw-black);
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-stats {
    margin: 20px 0;
    color: var(--bmw-red);
    font-weight: bold;
}

/* Vehicles */
.recent-vehicles {
    padding: 80px 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.vehicle-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, #f5f5f5, #ddd);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--bmw-black);
}

.vehicle-plate {
    display: inline-block;
    background: var(--bmw-black);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

.vehicle-category {
    color: var(--bmw-red);
    font-weight: bold;
    margin-bottom: 10px;
}

.vehicle-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.vehicle-date {
    color: #999;
    font-size: 12px;
}

/* Page Header Background */
.page-header-bg {
    background: linear-gradient(135deg, var(--bmw-black) 0%, var(--bmw-gray) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header-bg h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header-bg p {
    font-size: 18px;
    margin-bottom: 10px;
}

.vehicle-count {
    color: var(--bmw-red);
    font-weight: bold;
}

/* Category Vehicles */
.category-vehicles {
    padding: 60px 0;
}

.no-vehicles {
    text-align: center;
    padding: 60px 20px;
}

.no-vehicles p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Add Vehicle Form */
.add-vehicle-section {
    padding: 60px 0;
    background: var(--bmw-light-gray);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.vehicle-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--bmw-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bmw-border);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bmw-red);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: var(--bmw-red);
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Agreement */
.agreement-section {
    padding: 60px 0;
}

.agreement-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    white-space: pre-wrap;
    line-height: 1.8;
}

.agreement-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Footer */
.main-footer {
    background: var(--bmw-black);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--bmw-red);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--bmw-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Enhanced Vehicles Grid */
.vehicles-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.vehicle-card-enhanced {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.vehicle-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 0, 0, 0.3);
}

.vehicle-image-enhanced {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.vehicle-no-photo {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-photo-icon {
    font-size: 80px;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
}

.vehicle-image-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.vehicle-card-enhanced:hover .vehicle-image-enhanced::before {
    opacity: 1;
}

.vehicle-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.vehicle-category-badge {
    background: linear-gradient(135deg, var(--bmw-red), var(--bmw-dark-red));
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(227, 0, 0, 0.3);
}

.vehicle-info-enhanced {
    padding: 25px;
}

.vehicle-info-enhanced h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--bmw-black);
    font-weight: 700;
}

.vehicle-plate-enhanced {
    display: inline-block;
    background: linear-gradient(135deg, var(--bmw-black), var(--bmw-gray));
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.vehicle-description-enhanced {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.vehicle-date-enhanced {
    color: #999;
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.view-all-section {
    text-align: center;
    margin-top: 50px;
}

.all-vehicles-section {
    padding: 60px 0;
    background: var(--bmw-light-gray);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .vehicle-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .agreement-actions {
        flex-direction: column;
    }
    
    .vehicles-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .vehicle-image-enhanced {
        height: 200px;
    }
}

/* Modern Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--bmw-red), var(--bmw-dark-red));
    color: white;
    padding: 25px 30px;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.modal-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--bmw-red);
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modern Edit Button on Vehicle Card */
.edit-vehicle-btn {
    background: linear-gradient(135deg, var(--bmw-red), var(--bmw-dark-red));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(227, 0, 0, 0.3);
}

.edit-vehicle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 0, 0, 0.5);
}

.edit-vehicle-btn:active {
    transform: translateY(-1px);
}

/* Modern Form Inputs */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bmw-black);
    font-size: 14px;
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--bmw-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(227, 0, 0, 0.1);
}

.modal-body .form-group input[type="password"] {
    font-size: 18px;
    letter-spacing: 3px;
}

/* Photo Preview */
.photo-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Modern Submit Button */
.modal-body .btn-primary {
    background: linear-gradient(135deg, var(--bmw-red), var(--bmw-dark-red));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(227, 0, 0, 0.3);
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 0, 0, 0.5);
}

/* Password Check Button */
.password-check-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.password-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Lock Icon Animation */
.lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Success/Error Messages in Modal */
.modal-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.modal-alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
}

