/**
 * Magic Proxy Card Notification System
 * Scoped to .notify-app to avoid conflicts with Bootstrap/Mobirise navbar & footer
 */

/* CSS Variables (global — used by both content and standalone pages like unsubscribe) */
:root {
    --primary-color: #d70081;
    --primary-hover: #ff0b9d;
    --primary-light: #ffd7ef;
    --secondary-color: #232323;
    --accent-color: #260a30;
    --text-color: #232323;
    --text-light: #7a7a7a;
    --background: #f7f7f7;
    --white: #fff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 100px;
    --radius-card: 2rem;
    --transition: all 0.3s ease-in-out;
}

/* ============================================
   CONTENT AREA — scoped to .notify-app
   ============================================ */

.notify-app {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
}

.notify-app main {
    padding: 120px 0 50px;
}

.notify-app a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.notify-app a:hover {
    color: var(--primary-hover);
}

/* Intro */
.notify-app .intro {
    text-align: center;
    margin-bottom: 40px;
}

.notify-app .intro h2 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.notify-app .intro p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Filters */
.notify-app .filters {
    background: var(--background);
    padding: 24px;
    border-radius: var(--radius-card);
    margin-bottom: 30px;
}

.notify-app .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.notify-app .filter-group {
    flex: 1;
    min-width: 200px;
}

.notify-app .filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.notify-app .filter-group input,
.notify-app .filter-group select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Golos Text', sans-serif;
    background: var(--white);
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px 0px, rgba(0, 0, 0, 0.07) 0px 1px 3px 0px, rgba(0, 0, 0, 0.03) 0px 0px 0px 1px;
}

.notify-app .filter-group input:focus,
.notify-app .filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 129, 0.15);
}

/* Buttons (scoped) */
.notify-app .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Golos Text', sans-serif;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.notify-app .btn:hover {
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
}

.notify-app .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.notify-app .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

.notify-app .btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.notify-app .btn-secondary:hover {
    background: #3d3d3d;
    border-color: #3d3d3d;
}

.notify-app .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.notify-app .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notify-app .btn-full {
    width: 100%;
}

.notify-app .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product Grid */
.notify-app .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.notify-app .product-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.notify-app .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.notify-app .product-image {
    position: relative;
    height: 220px;
    background: var(--background);
    overflow: hidden;
}

.notify-app .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notify-app .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--background), #eee);
}

.notify-app .product-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notify-app .product-info {
    padding: 24px;
}

.notify-app .product-name {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.notify-app .product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notify-app .product-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.notify-app .product-date strong {
    color: var(--text-color);
}

/* No Results */
.notify-app .no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--background);
    border-radius: var(--radius-card);
}

.notify-app .no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Pagination */
.notify-app .pagination {
    margin-top: 40px;
    text-align: center;
}

.notify-app .pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 5px;
    padding: 0;
}

.notify-app .pagination li a,
.notify-app .pagination li span {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.notify-app .pagination li a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.notify-app .pagination li.active span {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   MODAL — inside .notify-app wrapper
   ============================================ */

.notify-app .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notify-app .modal.active {
    display: flex;
    opacity: 1;
}

.notify-app .modal-content {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 36px;
    width: 100%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.notify-app .modal.active .modal-content {
    transform: scale(1);
}

.notify-app .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 5px;
    transition: var(--transition);
}

.notify-app .modal-close:hover {
    color: var(--primary-color);
}

.notify-app .modal h2 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.notify-app .modal-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 24px;
}

/* Forms */
.notify-app .form-group {
    margin-bottom: 20px;
}

.notify-app .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.notify-app .required {
    color: var(--primary-color);
}

.notify-app .form-group input[type="text"],
.notify-app .form-group input[type="email"],
.notify-app .form-group input[type="password"],
.notify-app .form-group textarea,
.notify-app .form-group select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Golos Text', sans-serif;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.25s ease;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px 0px, rgba(0, 0, 0, 0.07) 0px 1px 3px 0px, rgba(0, 0, 0, 0.03) 0px 0px 0px 1px;
}

.notify-app .form-group textarea {
    border-radius: var(--radius-card);
    min-height: 100px;
    resize: vertical;
}

.notify-app .form-group input:focus,
.notify-app .form-group textarea:focus,
.notify-app .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 129, 0.15);
}

.notify-app .form-group input.error {
    border-color: var(--error-color);
}

.notify-app .form-error {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Radio Group */
.notify-app .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notify-app .radio-label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--background);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 120px;
    font-size: 0.95rem;
}

.notify-app .radio-label:hover {
    background: var(--primary-light);
}

.notify-app .radio-label input {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.notify-app .radio-label input:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Success Message */
.notify-app .form-success {
    text-align: center;
    padding: 20px;
}

.notify-app .success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.notify-app .form-success h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

/* Alert Messages */
.notify-app .alert {
    padding: 15px 20px;
    border-radius: var(--radius-card);
    margin-bottom: 20px;
}

.notify-app .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notify-app .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notify-app .alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .notify-app .intro h2 {
        font-size: 1.6rem;
    }

    .notify-app .filter-form {
        flex-direction: column;
    }

    .notify-app .filter-group {
        width: 100%;
    }

    .notify-app .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .notify-app .radio-group {
        flex-direction: column;
    }

    .notify-app .radio-label {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .notify-app .intro h2 {
        font-size: 1.4rem;
    }

    .notify-app .product-grid {
        grid-template-columns: 1fr;
    }

    .notify-app .modal-content {
        padding: 24px;
    }
}

/* ============================================
   STANDALONE PAGES (unsubscribe, etc.)
   These pages don't use .notify-app wrapper
   ============================================ */

.unsubscribe-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background);
    padding: 20px;
    font-family: 'Golos Text', sans-serif;
}

.unsubscribe-box {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.unsubscribe-box h1 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.unsubscribe-box p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.unsubscribe-box form {
    text-align: left;
}

.unsubscribe-box .form-group {
    margin-bottom: 20px;
}

.unsubscribe-box .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.unsubscribe-box .form-group input,
.unsubscribe-box .form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Golos Text', sans-serif;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.25s ease;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px 0px, rgba(0, 0, 0, 0.07) 0px 1px 3px 0px, rgba(0, 0, 0, 0.03) 0px 0px 0px 1px;
}

.unsubscribe-box .form-group textarea {
    border-radius: var(--radius-card);
    min-height: 80px;
    resize: vertical;
}

.unsubscribe-box .form-group input:focus,
.unsubscribe-box .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 129, 0.15);
}

.unsubscribe-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Golos Text', sans-serif;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: var(--white);
}

.unsubscribe-box .btn:hover {
    background: var(--primary-hover);
}

.unsubscribe-box .alert {
    padding: 15px 20px;
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    text-align: left;
}

.unsubscribe-box .alert-success {
    background: #d4edda;
    color: #155724;
}

.unsubscribe-box .alert-error {
    background: #f8d7da;
    color: #721c24;
}

.unsubscribe-box .alert-warning {
    background: #fff3cd;
    color: #856404;
}

.back-link {
    margin-top: 30px;
    display: block;
    color: var(--primary-color);
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary-hover);
}
