/**
 * E-Ticaret Bakım Sayfası - CSS Stilleri
 * Modern, responsive ve kullanıcı dostu tasarım
 */

/* CSS Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #314F78;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo Image Styles */
.logo-img {
    height: 0.8em;
    width: 0.8em;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    vertical-align: middle;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: scale(1.1) rotate(2deg) translateY(0px);
    }
    50% {
        transform: scale(1.1) rotate(2deg) translateY(-3px);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 40px 0;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 60px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(8px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 79, 120, 0.85) 0%, rgba(49, 79, 120, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
    background: rgba(0,0,0,0.2);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    background: rgba(0,0,0,0.15);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 15px;
}

.hero-description {
    font-size: 1.2rem;
    color: white;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.1);
    padding: 20px 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

/* Tailwind Progress Section - Custom styles for enhanced effects */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Categories Section */
.categories {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.category-item {
    text-align: center;
    padding: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

/* Category Images */
.category-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 79, 120, 0.8) 0%, rgba(49, 79, 120, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

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

.category-item:hover .category-image img {
    transform: scale(1.15);
}

.category-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    animation: bounceIn 0.6s ease-out;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    text-align: center;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.category-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 20px 20px 0 20px;
}

.category-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 20px 20px 20px;
}

/* Newsletter Section */
.newsletter {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content {
    text-align: center;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Message Styles */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

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

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

.message i {
    font-size: 1.2rem;
}

/* Form Styles */
.newsletter-form {
    text-align: left;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-input:invalid {
    border-color: #dc3545;
}

.form-input:valid {
    border-color: #28a745;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        gap: 40px;
        padding: 20px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .categories,
    .newsletter {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .category-item h3 {
        padding: 15px 15px 0 15px;
        font-size: 1.1rem;
    }
    
    .category-item p {
        padding: 0 15px 15px 15px;
        font-size: 0.85rem;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    /* Tailwind Progress Section - Mobile responsive styles are handled by Tailwind classes */
    
    .form-input {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item h3 {
        padding: 20px 20px 0 20px;
        font-size: 1.2rem;
    }
    
    .category-item p {
        padding: 0 20px 20px 20px;
        font-size: 0.9rem;
    }
    
    .category-image {
        height: 220px;
    }
    
    .category-icon {
        font-size: 3.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .newsletter {
        padding: 25px 15px;
    }
    
    .newsletter-title {
        font-size: 1.6rem;
    }
    
    /* Tailwind Progress Section - Small mobile responsive styles are handled by Tailwind classes */
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header,
    .footer {
        display: none;
    }
    
    .categories,
    .newsletter {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .submit-btn {
        border: 2px solid white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

