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

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 Styles */
.header {
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0066cc;
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-contact .email {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 150px);
    padding: 1rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
}

.page-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Search Container */
.search-container {
    margin-bottom: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    position: relative;
    margin-bottom: 0.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0066cc;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.search-results-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Table Styles */
.table-wrapper {
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.domain-table th {
    background: #f5f5f5;
    color: #333;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.domain-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.75rem;
}

.domain-table tbody tr:hover {
    background-color: #f9f9f9;
}

.domain-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.domain-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Sütun genişlikleri - 8 sütun için optimum ayarlandı */
.domain-table th:nth-child(1),
.domain-table td:nth-child(1) {
    width: 4%;
    text-align: center;
    font-weight: 600;
}

.domain-table th:nth-child(2),
.domain-table td:nth-child(2) {
    width: 9%;
    text-align: center;
}

.domain-table th:nth-child(3),
.domain-table td:nth-child(3) {
    width: 18%;
    font-weight: bold;
    color: #000;
    font-size: calc(0.75rem + 2px);
}

.domain-table th:nth-child(4),
.domain-table td:nth-child(4) {
    width: 11%;
    text-align: center;
    font-weight: 600;
}

.domain-table th:nth-child(5),
.domain-table td:nth-child(5) {
    width: 14%;
    text-align: center;
}

.domain-table th:nth-child(6),
.domain-table td:nth-child(6) {
    width: 14%;
    text-align: center;
}

.domain-table th:nth-child(7),
.domain-table td:nth-child(7) {
    width: 20%;
    text-align: center;
    font-weight: 500;
    color: #666;
}

.domain-table th:nth-child(8),
.domain-table td:nth-child(8) {
    width: 10%;
    text-align: center;
    font-weight: 600;
    color: #28a745;
}

/* Teklif Ver Butonu */
.offer-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.offer-btn:hover {
    background: #0052a3;
}

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

/* Price Styles */
.price-tag {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* Age Badge */
.age-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    max-height: 96vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.domain-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.domain-info h4 {
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.domain-info p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #218838;
}

/* Body scroll kilidi */
body.modal-open {
    overflow: hidden;
}

/* Modal Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

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

/* Footer */
.footer {
    background: #f8f9fa;
    color: #666;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-section a:hover {
    color: #333;
}

.footer-section p {
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .header-contact .email {
        font-size: 0.8rem;
    }
    
    .page-header h2 {
        font-size: 1rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
    
    .search-container {
        padding: 0.75rem;
    }
    
    .search-box input {
        padding: 0.6rem 0.8rem;
        padding-right: 2.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .close {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .domain-info {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .domain-info h4 {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .domain-table {
        min-width: 800px;
        font-size: 0.7rem;
    }
    
    .domain-table th,
    .domain-table td {
        padding: 0.4rem 0.3rem;
    }
    
    .domain-table th {
        font-size: 0.7rem;
    }
    
    .domain-table td {
        font-size: 0.65rem;
    }
    
    .domain-table td:nth-child(3) {
        font-size: calc(0.65rem + 2px);
    }
    
    .price-tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .offer-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    
    .page-header h2 {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .header-contact .email {
        font-size: 0.75rem;
    }
    
    .search-container {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5% auto;
        max-height: 99vh;
    }
    
    .modal-header {
        padding: 0.6rem 0.8rem;
    }
    
    .modal-header h3 {
        font-size: 0.9rem;
    }
    
    .close {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .domain-info {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .domain-info h4 {
        font-size: 0.9rem;
    }
    
    .domain-info p {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.6rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-actions {
        margin-top: 0.8rem;
    }
    
    .btn-cancel,
    .btn-submit {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .domain-table {
        min-width: 700px;
    }
    
    .domain-table th,
    .domain-table td {
        padding: 0.3rem 0.2rem;
    }
    
    .domain-table th {
        font-size: 0.65rem;
    }
    
    .domain-table td {
        font-size: 0.6rem;
    }
    
    .domain-table td:nth-child(3) {
        font-size: calc(0.6rem + 2px);
    }
    
    .price-tag {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .offer-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.55rem;
    }
    
    /* Mobilde sütun genişliklerini ayarla */
    .domain-table th:nth-child(1),
    .domain-table td:nth-child(1) {
        width: 4%;
    }
    
    .domain-table th:nth-child(2),
    .domain-table td:nth-child(2) {
        width: 9%;
    }
    
    .domain-table th:nth-child(3),
    .domain-table td:nth-child(3) {
        width: 18%;
    }
    
    .domain-table th:nth-child(4),
    .domain-table td:nth-child(4) {
        width: 12%;
    }
    
    .domain-table th:nth-child(5),
    .domain-table td:nth-child(5) {
        width: 14%;
    }
    
    .domain-table th:nth-child(6),
    .domain-table td:nth-child(6) {
        width: 14%;
    }
    
    .domain-table th:nth-child(7),
    .domain-table td:nth-child(7) {
        width: 19%;
    }
    
    .domain-table th:nth-child(8),
    .domain-table td:nth-child(8) {
        width: 10%;
    }
    
    .domain-table th:nth-child(4),
    .domain-table td:nth-child(4) {
        width: 12%;
    }
    
    .domain-table th:nth-child(5),
    .domain-table td:nth-child(5) {
        width: 12%;
    }
    
    .domain-table th:nth-child(6),
    .domain-table td:nth-child(6) {
        width: 15%;
    }
    
    .domain-table th:nth-child(7),
    .domain-table td:nth-child(7) {
        width: 8%;
    }
}

/* Scroll bar styling */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
} 