/**
 * Global CSS for theme notifications and common components
 */

/* Notification Styles */
:root {
    --input-border: #ddd;
}

.bg-grade {
    background-image: linear-gradient(rgb(107, 15, 15), rgb(45, 45, 45)) !important;
}

.stripe-button-el span {
    background: #FE114B !important;
    font-family: "Gantari", Sans-serif !important;
    font-weight: 700;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #FE114B !important;
    border-radius: 0px 0px 0px 0px;
    font-size: 18px;
    padding: 14px 40px !important;
    color: #fff;
    display: inline-block;
    transition: all .3s;
    height: initial !important;
    line-height: 1 !important;
}



.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.global-notification .notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.global-notification .notification-message {
    flex: 1;
    margin-right: 10px;
}

.global-notification .notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.global-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.global-notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Form Validation Error Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.error label {
    color: #dc3545 !important;
}

.radio-cards.error,
.checkbox-grid.error,
.radio-group.error {
    border: 2px solid #dc3545 !important;
    border-radius: 8px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.05);
}

.domain-error-message,
.role-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.required {
    color: #dc3545;
    margin-left: 2px;
}

.global-notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Success Popup Styles */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-popup {
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success Card Styles */
.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.success-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 24px;
    color: #f9fafb;
    margin-bottom: 10px;
}

.success-message {
    color: #9ca3af;
    margin-bottom: 30px;
}

/* Success Popup Close Button */
.success-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s ease;
    z-index: 10;
}

.success-popup-close:hover {
    color: #f9fafb;
}

.success-card {
    position: relative;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Advertisement Styles */

.advertisement-categories {
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.category-filters li {
    margin: 0;
}

.category-filters a {
    display: block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-filters a:hover,
.category-filters .active a {
    background-color: #DF1D2D;
    color: white;
}

.advertisements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.advertisement-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advertisement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.advertisement-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.advertisement-content {
    padding: 20px;
}

.advertisement-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.advertisement-title a {
    text-decoration: none;
    color: #333;
}

.advertisement-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.advertisement-meta {
    font-size: 0.9em;
    color: #999;
}

.advertisement-categories .category-tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Single Advertisement Styles */

.advertisement-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Advertisement Submission Form Styles */

.form-step h2 {
    color: #f7f7f7;
    margin-bottom: 10px;
}

.step-description {
    color: #d1d1d1;
    margin-bottom: 30px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message p {
    margin: 0 0 15px 0;
}

.success-message .btn {
    display: inline-block;
}

/* Dark theme adjustments */
[data-theme="dark"] .advertisement-item {
    background: #2a2a2a;
}

[data-theme="dark"] .advertisement-title a {
    color: #fff;
}

[data-theme="dark"] .advertisement-excerpt {
    color: #ccc;
}

[data-theme="dark"] .advertisement-meta {
    color: #999;
}

[data-theme="dark"] .entry-footer {
    border-top: 1px solid #444;
}

[data-theme="dark"] .success-message {
    background: #2d5a33;
    border: 1px solid #3c763d;
    color: #d4edda;
}

[data-theme="dark"] .advertisement-categories {
    border-bottom: 1px solid #444;
}

[data-theme="dark"] .category-filters a {
    background-color: #3a3a3a;
    color: #fff;
}

[data-theme="dark"] .category-filters a:hover,
[data-theme="dark"] .category-filters .active a {
    background-color: #DF1D2D;
    color: white;
}

[data-theme="dark"] .advertisement-categories .category-tag {
    background-color: #DF1D2D;
    color: white;
}

.post-type-archive-advertisement {
    background: #030303;
}

body[class*="archive"][class*="advertisement"] {
    background: #030303;

}

/* FORCE HEADER BLACK - Apply to advertisement submission page */
.page-template-template-advertisement-submission .site-header,
.page-template-template-advertisement-submission .elementor-section.elementor-top-section,
.page-template-template-advertisement-submission header.site-header,
.page-template-template-advertisement-submission #masthead,
.page-template-template-advertisement-submission .header-wrapper,
.page-template-template-advertisement-submission .main-header,
.template-advertisement-submission .site-header,
.template-advertisement-submission .elementor-section.elementor-top-section,
.template-advertisement-submission header.site-header,
.template-advertisement-submission #masthead,
.template-advertisement-submission .header-wrapper,
.template-advertisement-submission .main-header {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* Make header text white */
.page-template-template-advertisement-submission .site-header a,
.page-template-template-advertisement-submission .site-header .elementor-menu-toggle,
.page-template-template-advertisement-submission .site-header .elementor-nav-menu--main>li>a,
.page-template-template-advertisement-submission header.site-header a,
.page-template-template-advertisement-submission #masthead a,
.page-template-template-advertisement-submission .main-header a,
.template-advertisement-submission .site-header a,
.template-advertisement-submission .site-header .elementor-menu-toggle,
.template-advertisement-submission .site-header .elementor-nav-menu--main>li>a,
.template-advertisement-submission header.site-header a,
.template-advertisement-submission #masthead a,
.template-advertisement-submission .main-header a {
    color: #ffffff !important;
}