/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobil dokunma optimizasyonu */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Stilleri */
.header {
    background: linear-gradient(135deg, #2EAEEF 0%, #1E8BC3 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Ana İçerik */
.main {
    padding: 3rem 0;
}

/* Arama Bölümü */
.search-section {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #2EAEEF;
    box-shadow: 0 0 0 3px rgba(46, 174, 239, 0.1);
}

/* Kılavuz Grid */
.manuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.manual-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e1e5e9;
}

.manual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #2EAEEF;
}

.manual-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.manual-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2EAEEF, #1E8BC3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.manual-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.manual-card .card-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.manual-card .card-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manual-card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.manual-card:hover .card-image img {
    transform: scale(1.05);
}

.manual-card .card-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.manual-card .card-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2EAEEF;
    color: white;
}

.btn-primary:hover {
    background: #1E8BC3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #667eea;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: #333;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

/* Tab Stilleri */
.manual-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #2EAEEF;
    border-bottom-color: #2EAEEF;
    background: white;
}

.tab-btn:hover {
    background: #e9ecef;
}

/* Tab İçerik */
.tab-content {
    display: none;
    height: calc(100% - 60px);
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

/* PDF Görüntüleyici */
.pdf-viewer {
    height: 100%;
    padding: 1rem;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Resim Görüntüleyici */
.image-viewer {
    height: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* İndirme Bölümü */
.download-section {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-section h3 {
    margin-bottom: 2rem;
    color: #333;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.download-btn {
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdf-download {
    background: #dc3545;
    color: white;
}

.pdf-download:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.image-download {
    background: #28a745;
    color: white;
}

.image-download:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .manuals-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .manual-card .card-image img {
        height: 190px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .manuals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .manual-card {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .manual-card .card-image img {
        height: 180px;
    }
    
    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 10px 10px 0 0;
    }
    
    .manual-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .tab-btn.active {
        border-right-color: #2EAEEF;
        border-bottom-color: transparent;
    }
    
    .pdf-viewer, .image-viewer {
        padding: 0.5rem;
    }
    
    .search-box {
        max-width: 90%;
    }
    
    .search-box input {
        padding: 12px 20px 12px 45px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .main {
        padding: 1.5rem 0;
    }
    
    .search-box {
        max-width: 95%;
    }
    
    .search-box input {
        padding: 10px 20px 10px 40px;
        font-size: 0.85rem;
    }
    
    .manual-card {
        padding: 1rem;
        margin: 0 5px;
    }
    
    .manual-card .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .manual-card .card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .manual-card .card-image img {
        height: 150px;
    }
    
    .manual-card .card-title {
        font-size: 1.1rem;
    }
    
    .manual-card .card-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 98%;
        height: 98%;
        margin: 1% auto;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .tab-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manual-card {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2EAEEF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
