/* Phone Comparison Plugin Styles */
#phone-comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 600px;
}

.phone-comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.phone-comparison-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.phone-search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

#phone-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #2d3748;
}

#phone-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

#phone-search-btn {
    padding: 16px 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#phone-search-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
}

.search-results {
    margin-bottom: 30px;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.phone-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.phone-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.phone-image {
    width: 80px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 8px;
    float: left;
    margin-right: 15px;
}

.phone-card-content {
    overflow: hidden;
    min-height: 100px;
}

.phone-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.phone-specs {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.phone-specs p {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
}

.phone-specs strong {
    color: #2d3748;
    font-weight: 600;
}

.add-to-compare-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.add-to-compare-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

.add-to-compare-btn:disabled {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}





/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 24px;
}

.empty-state-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.suggestion-chip {
    padding: 6px 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: white;
    transform: translateY(-1px);
}





/* Modern Table Styling */
.modern-table {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}

.table-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-table .table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modern-table .comparison-table {
    margin: 0;
    border-radius: 0;
}

.modern-table .comparison-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
    padding: 20px 16px;
    font-weight: 700;
    border-bottom: 3px solid #22c55e;
}

.modern-table .comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.modern-table .comparison-table tr:hover td {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.modern-table .price-row {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    font-weight: 600;
}

/* Specification Icons */
.spec-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    stroke: currentColor;
    display: inline-block;
}

.comparison-table td .spec-icon {
    color: #22c55e;
}

.price-row .spec-icon {
    color: #d97706;
}

.modern-table .price-row:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: white;
}

/* Enhanced Phone Header */
.phone-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    padding: 8px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.comparison-table-container {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.comparison-table-container h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2d3748;
    padding: 24px;
    margin: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
    position: sticky;
    top: 0;
    z-index: 10;
}

.spec-header {
    background-color: #f9fafb;
    position: sticky;
    left: 0;
    z-index: 11;
    min-width: 160px;
}

.comparison-table td:first-child {
    background-color: white;
    position: sticky;
    left: 0;
    z-index: 5;
    font-weight: 600;
    min-width: 160px;
}

.phone-header {
    text-align: center;
    min-width: 200px;
    position: relative;
}

.phone-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.phone-delete-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

.phone-header-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto 8px;
    display: block;
}

.price-row {
    background-color: #fef3c7;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    #phone-comparison-container {
        padding: 15px;
    }
    
    .phone-comparison-header h2 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .phone-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    

    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .phone-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}