/* ================================================
   ADVERT PAGE STYLES
   Reklam Ver Sayfası Stilleri
   ================================================ */

/* Intro Section */
.advert-intro {
    margin-bottom: 30px;
}

.advert-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ================================================
   ACCORDION
   ================================================ */
.advert-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advert-group {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.advert-group:hover {
    border-color: var(--color-text-muted);
}

.advert-group.active {
    border-color: var(--color-primary);
}

/* Accordion Header */
.advert-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.advert-group-header:hover {
    background: var(--color-surface);
}

.advert-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-surface);
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.advert-group.active .advert-group-icon {
    background: var(--color-primary);
    color: #fff;
}

.advert-group.active .advert-group-icon .plus-vertical {
    display: none;
}

.advert-group-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.advert-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: var(--color-surface);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.advert-group.active .advert-group-count {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

/* Accordion Content */
.advert-group-content {
    display: none;
    border-top: 1px solid var(--color-border);
}

/* Advert List */
.advert-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.advert-item {
    border-bottom: 1px solid var(--color-border);
}

.advert-item:last-child {
    border-bottom: none;
}

.advert-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.advert-item-btn:hover {
    background: var(--color-surface);
}

.advert-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.advert-item-code {
    display: inline-block;
    padding: 3px 8px;
    background: var(--color-surface);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.advert-item-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
}

.advert-item-action svg {
    transition: transform 0.2s ease;
}

.advert-item-btn:hover .advert-item-action svg {
    transform: translateX(4px);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.advert-contact {
    margin-top: 40px;
    padding: 24px;
    background: var(--color-surface);
    border-radius: 12px;
}

.advert-contact-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.advert-contact-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 20px;
}

.advert-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.advert-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.advert-contact-item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.advert-contact-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ================================================
   MODAL
   ================================================ */
.advert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.advert-modal.show {
    display: block;
}

.advert-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.advert-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.advert-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.advert-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    z-index: 10;
}

.advert-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

/* Modal Header */
.advert-modal-header {
    padding: 24px 24px 16px;
}

.advert-modal-code {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.advert-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    padding-right: 40px;
}

/* Modal Image */
.advert-modal-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-surface);
    overflow: hidden;
}

.advert-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advert-modal-image img[src=""] {
    display: none;
}

.advert-modal-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-muted);
}

.advert-modal-image-placeholder span {
    font-size: 14px;
}

.advert-modal-image img:not([src=""]) + .advert-modal-image-placeholder {
    display: none;
}

/* Modal Details */
.advert-modal-details {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
}

.advert-modal-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.advert-modal-detail:last-child {
    border-bottom: none;
}

.advert-modal-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.advert-modal-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

/* Modal Actions */
.advert-modal-actions {
    padding: 0 24px 24px;
}

.advert-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--color-primary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advert-modal-btn:hover {
    background: var(--color-primary-dark);
}

/* ================================================
   RESPONSIVE - Tablet
   ================================================ */
@media (max-width: 991px) {
    .advert-group-header {
        padding: 14px 16px;
    }

    .advert-item-btn {
        padding: 12px 16px;
    }

    .advert-contact-info {
        flex-direction: column;
    }
}

/* ================================================
   RESPONSIVE - Mobile
   ================================================ */
@media (max-width: 575px) {
    .advert-intro p {
        font-size: 14px;
    }

    .advert-group-icon {
        width: 28px;
        height: 28px;
    }

    .advert-group-icon svg {
        width: 16px;
        height: 16px;
    }

    .advert-group-title {
        font-size: 14px;
    }

    .advert-group-count {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .advert-item-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
    }

    .advert-item-action {
        font-size: 12px;
    }

    .advert-modal-container {
        width: 95%;
    }

    .advert-modal-header {
        padding: 20px 20px 12px;
    }

    .advert-modal-title {
        font-size: 18px;
    }

    .advert-modal-details {
        padding: 16px 20px;
    }

    .advert-modal-actions {
        padding: 0 20px 20px;
    }

    .advert-contact {
        padding: 20px;
    }

    .advert-contact-title {
        font-size: 16px;
    }
}
