/* ===== Ads Page CSS ===== */

/* Background */
.ads-bg {
    background:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.ads-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(249, 115, 22, 0.25) 2px, transparent 2px),
        radial-gradient(circle, rgba(13, 148, 136, 0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(251, 191, 36, 0.2) 2px, transparent 2px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
    background-position: 0 0, 30px 30px, 60px 15px;
    pointer-events: none;
    animation: adsDotsFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes adsDotsFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ads-bg>* {
    position: relative;
    z-index: 1;
}


.ads-container {
    max-width: 900px;
    margin: 0 auto;
}

.ads-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.ad-icon-title {
    margin-right: 10px;
}

/* User Actions */
.ad-user-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.ad-action-btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ad-action-btn-main {
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: #fff;
}

.ad-action-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.ad-action-btn-secondary {
    background: #fff;
    color: #1e3a5f;
    border: 2px solid #e2e8f0;
}

.ad-action-btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Ad Actions */
.ad-actions {
    margin-top: 15px;
}

.ad-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ad-detail-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* Ad Type Rakip */
.ad-type.rakip {
    background: #e0f2fe;
    color: #0369a1;
}

.ad-icon {
    margin-right: 6px;
}

.ads-hero {

    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 50px 0;
    color: #fff;
    text-align: center;
}

.ads-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ads-hero p {
    opacity: 0.9;
}

/* Ads Filter */
.ads-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 30px 0;
    background: #f8fafc;
}

.ads-filter .btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
}

/* Ad Cards */
.ads-list {
    padding: 40px 0;
    min-height: 400px;
}

.ad-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ad-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ad-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ad-type.takim {
    background: #dbeafe;
    color: #1e40af;
}

.ad-type.oyuncu {
    background: #fef3c7;
    color: #92400e;
}

.ad-date {
    color: #64748b;
    font-size: 0.85rem;
}

.ad-content {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.ad-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ad-author-info {
    display: flex;
    flex-direction: column;
}

.ad-author-name {
    font-weight: 600;
    color: #1e3a5f;
}

.ad-author-team {
    font-size: 0.85rem;
    color: #64748b;
}

.ad-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ad-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.ad-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.ad-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Add Ad Form */
.add-ad-section {
    padding: 50px 0;
    background: #f8fafc;
}

.add-ad-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.add-ad-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e3a5f;
}

/* Empty State */
.ads-empty {
    text-align: center;
    padding: 60px 20px;
}

.ads-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.ads-empty h4 {
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .ads-hero h1 {
        font-size: 1.5rem;
    }

    .ad-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .add-ad-card {
        padding: 25px;
    }
}