/* Zyflora AI Sales Page Generator - Frontend Styles */

.zyflora-salespage-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(255, 20, 147, 0.4), 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.zyflora-salespage-container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.zyflora-header {
    text-align: center;
    margin-bottom: 30px;
}

.zyflora-header h1 {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ff1493 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.zyflora-badge {
    display: inline-block;
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 127, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.zyflora-counter {
    background: rgba(255, 20, 147, 0.15);
    border: 2px solid rgba(255, 20, 147, 0.4);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #ff69b4;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.2);
}

.zyflora-error {
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 20px;
    color: #ff6b6b;
    text-align: center;
    font-weight: 500;
}

.zyflora-form {
    background: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

.zyflora-dropzone {
    background: rgba(10, 10, 10, 0.5);
    border: 3px dashed rgba(255, 20, 147, 0.3);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.zyflora-dropzone:hover {
    border-color: rgba(255, 20, 147, 0.8);
    background: rgba(255, 20, 147, 0.05);
    transform: translateY(-2px);
}

.zyflora-dropzone-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zyflora-dropzone-text {
    color: #ff69b4;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.zyflora-dropzone-hint {
    color: #ffffff;
    font-size: 0.95em;
}

.zyflora-step {
    margin-bottom: 30px;
}

.zyflora-step label {
    display: block;
    color: #ff69b4;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.zyflora-button {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.4);
}

.zyflora-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.6);
}

.zyflora-button-secondary {
    width: 100%;
    padding: 15px 30px;
    background: rgba(255, 105, 180, 0.2);
    color: #ff69b4;
    border: 2px solid rgba(255, 105, 180, 0.4);
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.zyflora-loading {
    text-align: center;
    padding: 60px 40px;
}

.zyflora-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 20, 147, 0.2);
    border-top-color: #ff69b4;
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.zyflora-loading p {
    color: #ff69b4;
    font-size: 1.2em;
    font-weight: 600;
    margin: 10px 0;
}

.zyflora-result {
    background: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 20, 147, 0.3);
    text-align: center;
}

.zyflora-result h3 {
    color: #ff69b4;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.zyflora-upgrade {
    background: rgba(30, 30, 30, 0.8);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 20, 147, 0.4);
    box-shadow: 0 0 60px rgba(255, 20, 147, 0.3);
}

.zyflora-upgrade-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.zyflora-upgrade h2 {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

.zyflora-upgrade p {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.zyflora-upgrade ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.zyflora-upgrade li {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 15px;
}


/* Preview Grid */
.zyflora-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.preview-item .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

/* Form Fields */
.zyflora-field {
    margin-bottom: 20px;
}

.zyflora-field label {
    display: block;
    color: #ff69b4;
    font-weight: 600;
    margin-bottom: 8px;
}

.zyflora-field input,
.zyflora-field select,
.zyflora-field textarea {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 8px;
    color: #000000;
    font-size: 15px;
}

.zyflora-field input:focus,
.zyflora-field select:focus,
.zyflora-field textarea:focus {
    outline: none;
    border-color: #ff69b4;
}

/* Result Tabs */
.zyflora-result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.result-tab {
    padding: 12px 30px;
    background: rgba(255, 105, 180, 0.2);
    color: #ff69b4;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.result-tab.active {
    background: rgba(255, 105, 180, 0.3);
    border-color: #ff69b4;
}


/* Advanced Options */
.zyflora-advanced-toggle {
    margin: 20px 0;
    text-align: center;
}

.zyflora-advanced-options {
    background: rgba(10, 10, 10, 0.3);
    border: 2px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.field-hint {
    color: #ffffff;
    font-size: 0.85em;
    margin: 5px 0 0 0;
    font-style: italic;
}

.zyflora-field label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Keyword Research Styles */
.keyword-results {
    background: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 105, 180, 0.3);
    margin: 30px 0;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: #ff69b4;
    margin-bottom: 10px;
}

.keywords-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.keyword-card {
    background: rgba(10, 10, 10, 0.5);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.keyword-card:hover {
    border-color: #ff69b4;
    transform: translateY(-2px);
}

.keyword-card.saved {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.keyword-text {
    flex: 1;
}

.keyword-title {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.keyword-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.keyword-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-commercial {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-informational {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-low {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-medium {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.keyword-save-btn {
    background: rgba(255, 105, 180, 0.2);
    color: #ff69b4;
    border: 2px solid rgba(255, 105, 180, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.keyword-save-btn:hover {
    background: rgba(255, 105, 180, 0.3);
}

.keyword-save-btn.saved {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.3);
    cursor: default;
}

.keyword-reason {
    color: #ffffff;
    font-size: 0.9em;
    line-height: 1.5;
}

.saved-keywords-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 300px;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 15px;
    padding: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 999;
}

.saved-keywords-sidebar h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#saved-keywords-list {
    max-height: 400px;
    overflow-y: auto;
}

.saved-keyword-item {
    background: rgba(255, 105, 180, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.saved-keyword-item.used {
    opacity: 1;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 105, 180, 0.25);
}

.saved-keyword-item.used .saved-keyword-content strong {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.85);
}

.saved-keyword-content {
    margin-bottom: 12px;
}

.saved-keyword-item strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.saved-keyword-item small {
    color: #ffffff;
    font-size: 0.85em;
}

.keyword-actions {
    display: flex;
    gap: 8px;
}

.keyword-write-btn {
    flex: 1;
    background: #ff69b4;
    color: white;
    border: 2px solid #ff69b4;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.keyword-write-btn:hover {
    background: #ff1493;
    border-color: #ff1493;
}

.keyword-delete-btn {
    background: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.keyword-delete-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
}

@media (max-width: 1200px) {
    .saved-keywords-sidebar {
        position: static;
        width: 100%;
        margin-top: 30px;
        max-height: 500px;
    }
}

