/* main.css - Ana Stil Dosyası */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/remixicon/4.6.0/remixicon.min.css');

/* Global Styles */
:where([class^="ri-"])::before { 
    content: "\f3c2"; 
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Font Families */
.font-pacifico {
    font-family: 'Pacifico', cursive !important;
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}

/* Hero Section Background */
.hero-section {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.4) 80%, rgba(255, 255, 255, 0) 100%), 
                     url('images/bg.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Timeline Styles */
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background-color: #e5e7eb;
    z-index: 0;
}

.timeline-item {
    position: relative;
}

/* Input Number Spin Button Hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #0056a4;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #0056a4;
    border-color: #0056a4;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Message Styles */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    word-wrap: break-word;
}

.message.show {
    transform: translateX(0);
}

.message.success {
    background-color: #10b981;
}

.message.error {
    background-color: #ef4444;
}

.message.info {
    background-color: #0056a4;
}

/* Button Styles */
.btn-primary {
    background-color: #0056a4;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.btn-primary:hover {
    background-color: rgba(0, 86, 164, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 164, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: white;
    color: #0056a4;
    border: 1px solid #0056a4;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 164, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Hover effects for interactive elements */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading placeholder animation */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 60px;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll margin for anchored sections */
section[id] {
    scroll-margin-top: 80px;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #0056a4;
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #0056a4;
    box-shadow: 0 0 0 3px rgba(0, 86, 164, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Research Card Specific Styles */
.research-card {
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 86, 164, 0.1), 0 10px 10px -5px rgba(0, 86, 164, 0.04);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%), 
                         url('images/bg.webp');
        background-attachment: scroll;
    }
    
    .message {
        top: 70px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        max-width: none;
    }
    
    .message.show {
        transform: translateY(0);
    }
    
    section[id] {
        scroll-margin-top: 70px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .message {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .message {
        display: none !important;
    }
    
    header {
        position: static !important;
        box-shadow: none !important;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
    
    a {
        text-decoration: underline !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Bu kısım isteğe bağlı olarak dark mode desteği için kullanılabilir */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #0056a4;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-placeholder {
        animation: none;
        background: #f0f0f0;
    }
}
