/* API entegrasyonu i├ğin ek CSS stilleri */

/* Loading animasyonu */
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mesaj stilleri */
.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Form hata durumu */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Avukat kartlar─▒ */
.lawyer-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.lawyer-photo {
    text-align: center;
    margin-bottom: 15px;
}

.lawyer-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
}

.lawyer-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.lawyer-info .title {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 10px;
}

.specializations {
    margin: 10px 0;
}

.spec-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
    margin: 2px;
}

.experience {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.education, .bio {
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.contact-info {
    margin: 15px 0;
    font-size: 0.9em;
}

.contact-info a {
    color: #d4af37;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.randevu-btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.randevu-btn:hover {
    background: linear-gradient(135deg, #b8941f, #d4af37);
    transform: translateY(-2px);
}

/* Makale kartlar─▒ */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d4af37;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
}

.article-content {
    padding: 20px;
}

.article-title {
    color: #2c3e50;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.article-tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background: #e8f4f8;
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    margin: 2px;
}

.read-more-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.page-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* Veri yok mesaj─▒ */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Grid layout for cards */
.lawyers-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .lawyers-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}
