/*
 * Orderpages Shared CSS
 * Common styles for all order page templates (Cloud Space, Virtual Machines, HugeTalk)
 * 
 * Product-specific colors are defined via CSS custom properties per product type.
 * Each orderpage defines its own --product-color variable.
 *
 * Usage: <link href="{$orderpage_dir}common/orderpages-shared.css" rel="stylesheet">
 */

/* ========== Product Color Themes ========== */
.cloudspace-wrapper  { --product-color: #4B0082; --product-color-alpha: rgba(75, 0, 130, 0.1); }
.virtualmachines-wrapper { --product-color: #C6D748; --product-color-alpha: rgba(198, 215, 72, 0.1); }
.hugetalk-wrapper    { --product-color: #25D366; --product-color-alpha: rgba(37, 211, 102, 0.1); }

/* ========== Shared Base Variables ========== */
:root {
    --op-background: #FFFFFF;
    --op-foreground: #2B3240;
    --op-card: #FFFFFF;
    --op-muted: #F8FAFC;
    --op-muted-foreground: #6B7280;
    --op-border: #E5E7EB;
    --op-primary: #4A90E2;
    --op-success: #22C55E;
    --op-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== Navigation Tabs ========== */
.op-tabs-container {
    margin-bottom: 32px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.op-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--op-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.op-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--op-foreground);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: -2px;
}

.op-tab:hover {
    color: var(--op-foreground);
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.02);
}

.op-tab.active {
    color: var(--product-color, var(--op-primary));
    font-weight: 600;
    border-bottom-color: var(--product-color, var(--op-primary));
}

/* ========== Benefits Grid ========== */
.op-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.op-benefit-card {
    background-color: var(--op-card);
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.op-benefit-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.op-benefit-icon {
    width: 40px;
    height: 40px;
    background-color: var(--product-color-alpha, rgba(74, 144, 226, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.op-benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--product-color, var(--op-primary));
}

.op-benefit-content h4 {
    font-weight: 500;
    font-size: 14px;
    color: var(--op-foreground);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.op-benefit-content p {
    font-size: 14px;
    color: var(--op-muted-foreground);
    margin: 0;
    line-height: 1.5;
}

/* ========== Pricing Card ========== */
.op-pricing-card {
    background-color: var(--op-card);
    border: 1px solid var(--op-border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.op-pricing-label {
    color: var(--op-muted-foreground);
    font-size: 14px;
    margin-bottom: 8px;
}

.op-pricing-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--op-foreground);
    margin: 0 0 8px 0;
    line-height: 1;
}

.op-pricing-note {
    color: var(--op-muted-foreground);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ========== CTA Button ========== */
.op-cta-button {
    background-color: var(--op-success);
    color: white;
    font-weight: 500;
    padding: 14px 48px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--op-font-family);
}

.op-cta-button:hover {
    opacity: 0.9;
    color: white;
}

.op-cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Comparison Note ========== */
.op-comparison-note {
    background-color: rgba(248, 250, 252, 0.5);
    border: 1px solid var(--op-border);
    border-radius: 8px;
    padding: 16px;
}

.op-comparison-note p {
    font-size: 14px;
    color: var(--op-muted-foreground);
    margin: 0;
    line-height: 1.6;
}

.op-comparison-note strong {
    color: var(--op-foreground);
    font-weight: 600;
}

.op-comparison-note a {
    color: var(--op-primary);
    text-decoration: none;
}

.op-comparison-note a:hover {
    text-decoration: underline;
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
    .op-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .op-tabs-container { padding: 0 16px; }
    .op-tab { padding: 10px 16px; font-size: 13px; }
    .op-pricing-value { font-size: 36px; }
    .op-cta-button { font-size: 14px; padding: 12px 32px; width: 100%; }
}
