/* Sclipit Frontend Styles */

/* WordPress Theme Override - Light touch */
.sclipit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

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

.sclipit-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.sclipit-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0;
}

/* Search Form States */
.sclipit-form {
    background: #2a3441;
    border: 1px solid #3d4a5c;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sclipit-form-visible {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.sclipit-form-hidden {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    pointer-events: none;
    z-index: -1;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #3d4a5c;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #1e2530;
    color: #ffffff;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: #8a9ba8;
}

.help-text {
    display: block;
    font-size: 0.9em;
    color: #8a9ba8;
    margin-top: 5px;
    font-style: italic;
}

.sclipit-search-btn {
    background: linear-gradient(135deg, #8bc34a 0%, #689f2a 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    width: 100%;
}

.sclipit-search-btn:hover {
    background: linear-gradient(135deg, #689f2a 0%, #4a7020 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
}

.sclipit-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Panel Container */
.sclipit-status-panel {
    background: #2a3441;
    border: 1px solid #3d4a5c;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-panel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.status-left,
.status-center,
.status-right {
    flex: 1;
}

.status-center {
    text-align: center;
}

.status-right {
    text-align: right;
}

/* Usage Counter */
.usage-counter {
    display: flex;
    justify-content: flex-start;
}

.counter-display {
    background: #2a3441;
    border: 1px solid #3d4a5c;
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.counter-label {
    color: #8a9ba8;
    font-size: 0.8em;
    font-weight: 500;
}

.counter-value {
    color: #8bc34a;
    font-weight: 600;
    font-size: 0.85em;
    background: #1e2530;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

/* New Search Button (in status panel) */
.new-search-btn {
    background: linear-gradient(135deg, #8bc34a 0%, #689f2a 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.new-search-btn:hover {
    background: linear-gradient(135deg, #689f2a 0%, #4a7020 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.4);
}

/* AI Usage Counter Section */
.ai-usage-counter {
    display: flex;
    justify-content: flex-end;
}

.ai-counter-display {
    background: #2a3441;
    border: 1px solid #3d4a5c;
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-counter-label {
    color: #8a9ba8;
    font-size: 0.8em;
    font-weight: 500;
}

.ai-counter-value {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.85em;
    background: #1e2530;
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

.sclipit-results {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.5s ease;
    margin-bottom: 20px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.results-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.results-meta {
    color: #666;
    font-size: 0.95em;
}

.results-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.result-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f9f9f9;
}

.result-timestamp {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.result-timestamp:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.result-text {
    font-size: 1.05em;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.result-text .highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    padding: 40px;
    text-align: center;
    color: #666;
}

.no-results h3 {
    color: #999;
    margin-bottom: 10px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 15px;
    color: #c33;
    margin-top: 20px;
}

.loading-message {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #1976d2;
    margin-top: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e3f2fd;
    border-radius: 50%;
    border-top-color: #1976d2;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .sclipit-container {
        padding: 15px;
    }
    
    .sclipit-form {
        padding: 20px;
    }
    
    .sclipit-header h2 {
        font-size: 1.5em;
    }
    
    .result-item {
        padding: 15px;
    }
    
    .sclipit-search-btn {
        width: 100%;
        padding: 12px;
    }
    
    /* Status Panel Mobile */
    .status-panel-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .status-left,
    .status-center,
    .status-right {
        text-align: center;
    }
    
    .usage-counter {
        justify-content: center;
    }
    
    .ai-enhancement {
        align-items: center;
    }
    
    .ai-description {
        text-align: center;
        max-width: none;
    }
    
    .video-content {
        flex-direction: column;
    }
    
    .video-column,
    .transcript-column {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .video-column {
        order: 1;
    }
    
    .transcript-column {
        order: 2;
    }
    
    /* Mobile-friendly navigation */
    .quick-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quick-search-nav {
        flex-direction: row;
        justify-content: center;
        margin-left: 0;
        gap: 8px;
    }
    
    .quick-nav-btn {
        width: 40px;
        height: 32px;
        font-size: 16px;
    }
    
    .transcript-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .transcript-search-toggle {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile results styling */
    .sclipit-results-relocated {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .result-item-clean {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .result-timestamp-clean {
        display: block;
        text-align: center;
        margin-bottom: 8px;
        padding: 6px 12px;
    }
    
    .result-text-clean {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    /* Mobile transcript styling */
    .full-transcript {
        max-height: 300px;
        font-size: 0.9em;
    }
    
    .transcript-segment {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .segment-timestamp {
        min-width: 50px;
        font-size: 0.8em;
        margin-right: 8px;
    }
    
    .segment-text {
        font-size: 0.9em;
    }
    
    /* Mobile Quick Search Styles */
    .quick-search-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .transcript-quick-search {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    .quick-search-nav {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 12px !important;
        margin-left: 0 !important;
    }
    
    .quick-nav-btn {
        width: 60px !important;
        height: 44px !important;
        font-size: 18px !important;
        font-weight: bold !important;
    }
    
    .transcript-search-toggle {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    .quick-search-status {
        font-size: 0.9em !important;
        padding: 8px 12px !important;
        margin-top: 12px !important;
    }
}

/* Video and Transcript Section Styles */
.sclipit-video-section {
    margin-top: 20px;
    border: 1px solid #3d4a5c;
    border-radius: 12px;
    background: #2a3441;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease 0.1s both;
}

.video-content {
    display: flex;
    min-height: 600px;
}

.video-column {
    flex: 1.5;
    padding: 15px;
    border-right: 1px solid #3d4a5c;
    background: #2a3441;
}

.transcript-column {
    flex: 1;
    padding: 20px;
    background: #1e2530;
}

/* Removed headers for clean layout */

.video-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.video-embed iframe {
    border-radius: 8px;
}

/* Transcript Controls */
.transcript-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3d4a5c;
}

.transcript-search-toggle {
    background: #8bc34a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.transcript-search-toggle:hover {
    background: #689f2a;
}

.quick-search-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    margin-top: 8px;
}

.transcript-quick-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #3d4a5c;
    border-radius: 4px;
    font-size: 0.9em;
    background: #2a3441;
    color: #ffffff;
}

.transcript-quick-search::placeholder {
    color: #8a9ba8;
}

.quick-search-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 8px;
}

.quick-nav-btn {
    background: #8bc34a;
    color: white;
    border: 1px solid #689f2a;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quick-nav-btn:hover {
    background: #689f2a;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(139, 195, 74, 0.4);
}

.quick-nav-btn:disabled {
    background: #4a4a4a;
    color: #8a9ba8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.quick-search-status {
    font-size: 0.8em;
    color: #ffffff;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    background: #2a3441;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 3px solid #8bc34a;
    width: 100%;
    box-sizing: border-box;
}

/* Full Transcript Styles */
.full-transcript {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #3d4a5c;
    border-radius: 4px;
    padding: 10px;
    background: #2a3441;
}

.transcript-segments {
    line-height: 1.4;
}

.transcript-segment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.transcript-segment:hover {
    background: #3d4a5c;
}

.transcript-segment.transcript-match {
    background: #3a2f1a;
    border-left: 4px solid #8bc34a;
}

.transcript-segment.quick-match {
    background: #1a2a3a;
    border-left: 4px solid #8bc34a;
}

.transcript-segment.quick-match-current {
    background: #3a2f1a !important;
    border-left: 4px solid #8bc34a !important;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.4);
    animation: currentMatchPulse 0.5s ease-in-out;
}

@keyframes currentMatchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.transcript-segment.jump-highlight {
    background: #2a3e2a !important;
    border-left: 4px solid #8bc34a !important;
    animation: jumpPulse 0.5s ease-in-out;
}

@keyframes jumpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.segment-timestamp {
    min-width: 60px;
    color: #8bc34a;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    font-size: 0.9em;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.3s;
}

.segment-timestamp:hover {
    background: #8bc34a;
    color: white;
    text-decoration: none;
}

.segment-text {
    flex: 1;
    color: #ffffff;
    font-size: 0.95em;
}

.segment-text .highlight {
    background: #8bc34a;
    color: #1e2530;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* Scrollbar Styling for Transcript */
.full-transcript::-webkit-scrollbar {
    width: 8px;
}

.full-transcript::-webkit-scrollbar-track {
    background: #1e2530;
    border-radius: 4px;
}

.full-transcript::-webkit-scrollbar-thumb {
    background: #3d4a5c;
    border-radius: 4px;
}

.full-transcript::-webkit-scrollbar-thumb:hover {
    background: #8bc34a;
}

/* Clean Results Styling (in video column) */
.sclipit-results-relocated {
    background: #1e2530 !important;
    border: 1px solid #3d4a5c !important;
    border-radius: 8px !important;
    padding: 8px !important;
    margin: 0 0 15px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: none !important;
}

.results-header-clean {
    margin: 0 !important;
    padding: 6px 4px 8px 4px !important;
}

.results-header-clean p {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-size: 0.95em;
}

.no-results-clean {
    text-align: center;
    padding: 20px;
    color: #8a9ba8;
}

.no-results-clean p {
    margin: 5px 0;
}

.results-list-clean {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.result-item-clean {
    margin-bottom: 8px;
    padding: 10px;
    background: #2a3441;
    border-radius: 6px;
    border-left: 3px solid #8bc34a;
    transition: all 0.2s ease;
}

.result-item-clean:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transform: translateX(2px);
    background: #3d4a5c;
}

.result-timestamp-clean {
    display: inline-block;
    background: #8bc34a;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.result-timestamp-clean:hover {
    background: #689f2a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(139, 195, 74, 0.4);
}

.result-text-clean {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #ffffff;
}

/* Tabbed Results Interface */
.results-tabs {
    display: flex !important;
    background: #1e2530 !important;
    border-radius: 8px 8px 0 0 !important;
    border: 1px solid #3d4a5c !important;
    border-bottom: none !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.tab-button {
    flex: 1;
    background: #1e2530;
    color: #8a9ba8;
    border: none;
    padding: 12px 16px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #3d4a5c;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: #2a3441;
    color: #ffffff;
}

.tab-button.active {
    background: #2a3441;
    color: #8bc34a;
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #8bc34a;
}

.tab-content {
    border: 1px solid #3d4a5c !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    background: #1e2530 !important;
    padding: 4px !important;
    margin: 0 !important;
}

.tab-pane {
    display: none;
    padding: 0 !important;
}

.tab-pane.active {
    display: block;
}

/* AI-specific styling */
.ai-header .ai-description {
    font-size: 0.8em;
    color: #8a9ba8;
    margin: 5px 0 0 0;
    font-weight: normal;
}

.ai-result-item {
    position: relative;
    border-left: 3px solid #ff6b35 !important;
}

.ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.ai-badge-hybrid {
    background: linear-gradient(135deg, #8bc34a 0%, #ff6b35 100%);
}

.ai-keywords {
    margin-top: 8px;
    font-size: 0.75em;
    color: #8a9ba8;
}

.keyword-tag {
    background: #8bc34a;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    margin-right: 4px;
    display: inline-block;
}

.ai-confidence {
    margin-top: 6px;
    font-size: 0.75em;
    color: #8a9ba8;
    font-style: italic;
    border-left: 3px solid #ff6b35;
    padding-left: 8px;
    line-height: 1.3;
}

.ai-score {
    margin-top: 4px;
    font-size: 0.7em;
    color: #666;
    opacity: 0.7;
}

.ai-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8a9ba8;
    font-style: italic;
}

.ai-loading p {
    margin: 0;
}

.ai-no-results, .ai-error {
    text-align: center;
    padding: 30px 20px;
}

.ai-no-results p, .ai-error p {
    color: #8a9ba8;
    margin: 5px 0;
}

.ai-error p:first-child {
    color: #ff6b35;
}

/* AI Prompt Interface */
.ai-prompt {
    text-align: center;
    padding: 30px 20px;
}

.ai-prompt-header h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.ai-prompt-header p {
    color: #8a9ba8;
    margin: 0 0 20px 0;
    font-size: 0.95em;
}

.ai-prompt-examples {
    background: #2a3441;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.ai-prompt-examples p {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ai-prompt-examples ul {
    margin: 0;
    padding-left: 20px;
    color: #8a9ba8;
}

.ai-prompt-examples li {
    margin: 8px 0;
    font-size: 0.9em;
}

.ai-run-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ai-run-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.loading-spinner {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 3px solid #3d4a5c;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile tab adjustments */
/* Upgrade message styles */
.sclipit-upgrade-message, .sclipit-ai-upgrade-message {
    background: #1a1a1a;
    border: 2px solid #00ff9d;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    color: #ffffff;
}

.upgrade-header h3, .upgrade-header h4 {
    color: #00ff9d;
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.upgrade-header p {
    color: #cccccc;
    margin: 0 0 20px 0;
    font-size: 1.1em;
}

.upgrade-stats {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #3a3a3a;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #cccccc;
    font-weight: 500;
}

.stat-value {
    color: #00ff9d;
    font-weight: bold;
}

.upgrade-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #00ff9d, #00cc7a);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #00cc7a, #009955);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.new-search-btn {
    background: #3a3a3a;
    color: #ffffff;
    border: 2px solid #555555;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-search-btn:hover {
    background: #4a4a4a;
    border-color: #777777;
}

@media (max-width: 768px) {
    .tab-button {
        font-size: 0.8em;
        padding: 10px 8px;
    }
    
    .ai-badge {
        position: static;
        display: block;
        margin-top: 8px;
        align-self: flex-start;
    }
    
    .ai-result-item {
        display: flex;
        flex-direction: column;
    }
    
    .ai-prompt {
        padding: 20px 15px;
    }
    
    .ai-prompt-examples {
        padding: 15px;
    }
    
    .ai-run-btn {
        width: 100%;
        padding: 15px 20px;
    }
    
    .ai-counter-display {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .ai-counter-label {
        font-size: 0.75em;
    }
    
    .ai-counter-value {
        font-size: 0.8em;
        padding: 1px 4px;
    }
    
    .counter-display {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .counter-label {
        font-size: 0.75em;
    }
    
    .counter-value {
        font-size: 0.8em;
        padding: 1px 4px;
    }
    
    /* Mobile upgrade message styles */
    .upgrade-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .upgrade-btn, .new-search-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .upgrade-stats {
        padding: 12px;
    }
    
    .stat-item {
        padding: 6px 0;
    }
}