/**
 * Common Styles for Swipe Metal Customizer
 */

/* Self-hosted Montserrat — prevents Elementor from intercepting Google Fonts requests */
/* latin-ext */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-latin-ext.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global font & color reset — override theme accent colors (Hello Elementor, etc.) */
.swipe-metal-wrapper,
.swipe-modal-overlay,
.swipe-modal-overlay *,
.swipe-metal-wrapper * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.swipe-metal-wrapper,
.swipe-modal-overlay,
.swipe-customize-button-wrapper {
    --e-global-color-primary: #1a1a1a;
    --e-global-color-secondary: #1a1a1a;
    --e-global-color-accent: #1a1a1a;
    --e-global-color-text: #1a1a1a;
}

.swipe-metal-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swipe-initial-screen {
    text-align: center;
    padding: 40px 20px;
}

.swipe-initial-screen h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.swipe-choice-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.swipe-choice-card {
    flex: 1;
    padding: 40px 30px;
    border: 3px solid #ddd;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.swipe-choice-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.swipe-choice-icon {
    font-size: 60px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.swipe-choice-icon .dashicons {
    width: 60px;
    height: 60px;
    font-size: 60px;
}

.swipe-choice-card h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
}

.swipe-choice-card p {
    color: #666;
    margin-bottom: 20px;
}

.swipe-price-badge {
    display: inline-block;
    background: #d63638;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.swipe-choice-card .button {
    width: 100%;
}

.swipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-modal > .swipe-modal-content {
    background: white;
    padding: 30px;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.swipe-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

.swipe-modal-close:hover {
    color: #030303;
}

.swipe-modal h3 {
    margin-top: 0;
}

.swipe-modal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swipe-modal textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.ai-examples {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.ai-examples ul {
    margin: 10px 0;
    padding-left: 20px;
}

.swipe-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.swipe-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 5px;
    margin: 15px 0;
}

.swipe-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .swipe-choice-cards {
        flex-direction: column;
    }
    
    .swipe-metal-wrapper {
        padding: 15px;
    }
}
