/* Schema Star Admin - Main Options Page */
/* Schema Star Beautiful Design */
.star-settings-wrapper {
    background: linear-gradient(160deg, #0f0f0f 0%, #1a1a1a 35%, #252525 100%);
    min-height: 100vh;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.star-header-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 36px 36px;
    margin-bottom: 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.star-header-section::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.06;
    color: #1a1a1a;
    transform: rotate(-15deg);
    pointer-events: none;
}

.star-header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 0 0;
    font-size: 3em;
    font-weight: 800;
    color: #0f0f0f;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    padding-bottom: 20px;
    border-bottom: 4px double #1a1a1a;
    margin-bottom: 18px;
}

.star-header-title .star-icon {
    font-size: 1.2em;
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.star-header-subtitle {
    color: #555;
    font-size: 1.15em;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.star-header-marketing {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.06) 0%, rgba(26, 26, 26, 0.04) 100%);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #1a1a1a;
    position: relative;
    z-index: 1;
}

.star-header-marketing p {
    margin: 0 0 8px 0 !important;
    font-size: 0.95em !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.star-header-marketing p:last-child { margin-bottom: 0 !important; }

.star-header-marketing .star-marketing-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
}

.star-header-marketing .star-marketing-cta:hover { color: #fff !important; }

.star-header-actions {
    display: flex;
    gap: 15px;
    margin-top: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.star-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.star-help-link:hover {
    color: #fff;
}

.star-visit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.35);
}

.star-visit-link:hover {
    color: #fff;
}

.star-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.35);
}

.star-email-link:hover {
    color: #fff;
}

.star-settings-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.star-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.star-feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.star-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a1a1a, #333);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.star-feature-card:hover {
    /* Hover effects removed */
}

.star-feature-card:hover::before {
    /* Hover effects removed */
}

.star-feature-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: nowrap;
}

.star-feature-info {
    flex: 1;
}

.star-feature-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-feature-title .star-emoji {
    font-size: 1.3em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.star-feature-subtitle {
    font-size: 0.9em;
    color: #888;
    margin: 0;
    font-weight: 500;
}

.star-opts-btn-wrap {
    position: relative;
    flex-shrink: 0;
    min-width: 72px;
}

.star-opts-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 72px;
    height: 38px;
    padding: 0 6px;
    background: #e5e7eb;
    border: 2px solid #991b1b;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    outline: none;
}

.star-opts-btn:hover {
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25);
}

.star-opts-btn.active {
    background: linear-gradient(145deg, #991b1b 0%, #7f1d1d 100%);
    border: 2px solid #991b1b;
    box-shadow: 0 4px 14px rgba(153, 27, 27, 0.4);
}

.star-opts-btn.active:hover {
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.45);
}

.star-opts-btn-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.star-opts-btn.active .star-opts-btn-knob {
    transform: translateX(34px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.star-opts-btn-knob::after {
    content: '⭐';
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.star-opts-btn.active .star-opts-btn-knob::after {
    opacity: 1;
}

.star-feature-description {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95em;
}

.star-feature-description a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.star-feature-description a:hover {
    color: #333;
    text-decoration: underline;
}

.star-warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.star-warning-box .dashicons {
    color: #f39c12;
    font-size: 24px;
    flex-shrink: 0;
}

.star-warning-content {
    flex: 1;
}

.star-warning-text {
    color: #856404;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.star-warning-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.star-warning-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    color: white;
}

.star-select-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    background: white;
    color: #333;
}

.star-select-field:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.star-submit-section {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.08) 0%, rgba(127, 29, 29, 0.08) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    border: 2px dashed rgba(153, 27, 27, 0.3);
}

.star-submit-button {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 27, 27, 0.3);
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.star-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 27, 27, 0.4);
}

.star-submit-button::before {
    content: '';
    display: none;
}

.star-help-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

.star-help-toggle {
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #333;
}

.star-help-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.star-help-toggle h3 {
    margin: 0;
    font-size: 1.5em;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-help-content {
    display: none;
    padding: 20px 0;
}

.star-help-content.active {
    display: block;
}

.star-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.star-help-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.star-help-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.star-help-card h4 {
    color: #1a1a1a;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.star-help-card p {
    color: #666;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.star-help-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .star-settings-wrapper {
        padding: 15px 10px;
    }
    
    .star-header-section {
        padding: 28px 20px;
    }
    
    .star-header-title {
        font-size: 2.2em;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 16px;
        margin-bottom: 14px;
    }
    
    .star-header-marketing { padding: 12px 16px; margin-bottom: 16px; }
    .star-header-marketing p { font-size: 0.9em !important; }
    
    .star-feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .star-feature-card {
        padding: 20px;
    }
    
    .star-feature-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .star-opts-btn-wrap {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .star-help-grid {
        grid-template-columns: 1fr;
    }
    
    .star-header-actions {
        flex-direction: column;
    }
    
    .star-email-link,
    .star-help-link,
    .star-visit-link {
        width: 100%;
        justify-content: center;
    }
}

/* Hide default WordPress styles */
.star-settings-wrapper .form-table {
    display: none;
}

.star-settings-wrapper .form-table th,
.star-settings-wrapper .form-table td {
    display: block;
    padding: 0;
    border: none;
}

/* Hide submenu item that does not contain a link (dashboard only) */
#toplevel_page_STAR_options .wp-submenu li > a:empty { display: none !important; }
