/**
 * 4Square Authentication Widget Styles
 */

/* Widget Container */
#fsq-auth-widget-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

/* Overlay */
.fsq-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal */
.fsq-widget-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Close Button */
.fsq-widget-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    transition: all 0.2s ease;
}

.fsq-widget-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Widget Iframe */
#fsq-auth-widget-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Login Prompt Styles */
.fsq-login-prompt {
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.fsq-login-prompt p {
    margin: 0;
    color: #666;
}

.fsq-login-button {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.fsq-login-button:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Balance Info */
.fsq-balance-info {
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    margin-bottom: 15px;
}

.fsq-balance-info p {
    margin: 0;
    color: #2e7d32;
}

.fsq-balance-info strong {
    font-size: 1.1em;
    color: #1b5e20;
}

/* Auth Required Message */
.fsq-auth-required {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.fsq-auth-required:hover {
    background: #e55a2b;
    color: #fff;
}

/* Loading State */
.fsq-widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 600px) {
    .fsq-widget-modal {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    #fsq-auth-widget-iframe {
        height: calc(100vh - 60px);
    }
    
    .fsq-widget-close {
        top: 15px;
        right: 15px;
    }
}

/* Removed duplicate payment method styles - now in foursquare-styles.css */

/* Error States */
.fsq-error-message {
    padding: 15px;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #b71c1c;
}

/* Success States */
.fsq-success-message {
    padding: 15px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #1b5e20;
}

/* Retry Message */
.fsq-retry-message {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 10px;
    color: #856404;
    text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    .fsq-widget-overlay {
        padding: 0;
    }
    
    .fsq-widget-modal {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .fsq-widget-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    #fsq-auth-widget-iframe {
        height: calc(100vh - 20px);
    }
    
    /* Login button adjustments for mobile */
    .fsq-login-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Points display adjustments */
    .fsq-points-display {
        font-size: 14px;
    }
    
    .fsq-balance-amount {
        font-size: 18px;
    }
}

/* Tablet adjustments */
@media (min-width: 601px) and (max-width: 1024px) {
    .fsq-widget-modal {
        max-width: 90%;
        max-height: 90vh;
    }
}

/* Removed duplicate payment method styles - now in foursquare-styles.css */

/* Primary Button Style - Match flow-3.html */
.btn-primary,
#fsq-login-to-complete {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: none;
    letter-spacing: normal;
}

.btn-primary:hover,
#fsq-login-to-complete:hover {
    background-color: #2980b9;
    color: white;
}

/* Widget Trigger Button */
.fsq-widget-trigger {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Removed duplicate payment method styles - now in foursquare-styles.css */
