/* ============================================
   optimal-toolkit.css
   Styles for Optimal Dropshipping Toolkit
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8fafc;
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
}

.header p {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 20px;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.back-link i {
    font-size: 11px;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: -20px auto 40px;
    padding: 0 24px;
    position: relative;
}

/* ===== Tool Cards ===== */
.tool-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    border: 1px solid #e2e8f0;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* ===== Tool Icon ===== */
.tool-icon {
    min-width: 56px;
    text-align: center;
}

.tool-icon img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.03);
}

/* ===== Tool Info ===== */
.tool-info {
    flex: 1;
}

/* ===== Title Row ===== */
.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.tool-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tool-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tool-title a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ===== Try Button ===== */
.try-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.try-button i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.try-button:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-1px);
}

.try-button:hover i {
    transform: translateX(3px);
}

/* ===== Description ===== */
.tool-description {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
    font-size: 13px;
}

/* ===== PRICE BLOCK WITH ANIMATION ===== */
.price-block {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.2s ease;
}

.price-trigger {
    padding: 10px 16px;
    font-weight: 600;
    color: #4f46e5;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
}

.price-trigger i {
    font-size: 9px;
    transition: transform 0.2s;
}

.price-trigger .fa-chevron-right {
    font-size: 9px;
}

.price-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    background: #f8fafc;
    border-top: none;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.price-block:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-block:hover .price-content {
    max-height: 400px;
    opacity: 1;
    padding: 0 16px 16px 16px;
    border-top: 1px solid #e2e8f0;
}

.price-block:hover .price-trigger {
    background: #f1f5f9;
    border-radius: 12px 12px 0 0;
}

.price-block:hover .price-trigger .fa-chevron-right {
    transform: rotate(90deg);
}

/* Price current inside price block */
.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current span {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* ===== Plan List - FIXED COLUMNS ===== */
.plan-list {
    width: 100%;
    margin-top: 8px;
    display: table;
    table-layout: fixed;
}

.plan-item {
    display: table-row;
}

.plan-item > span {
    display: table-cell;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.plan-item:last-child > span {
    border-bottom: none;
}

.plan-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 12px;
    width: 30%;
}

.plan-price {
    font-weight: 700;
    color: #10b981;
    font-size: 13px;
    width: 25%;
}

.plan-note {
    color: #64748b;
    font-size: 11px;
    width: 45%;
}

/* ===== Price Updated ===== */
.price-updated {
    color: #94a3b8;
    font-size: 10px;
    margin-top: 12px;
    padding-top: 8px;
    text-align: right;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
    background: white;
}

.footer a {
    color: #4f46e5;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeIn 0.3s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }

    .logo {
        font-size: 28px;
    }
    
    .header p {
        font-size: 13px;
    }

    .container {
        padding: 0 16px;
        margin-top: -30px;
    }

    .tool-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
        gap: 14px;
    }

    .tool-icon {
        margin: 0 auto;
    }
    
    .tool-title-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .try-button {
        white-space: normal;
    }
    
    .price-block {
        text-align: left;
    }
    
    .price-current {
        justify-content: center;
    }
    
    /* Mobile: table becomes block */
    .plan-list,
    .plan-item,
    .plan-item > span {
        display: block;
    }
    
    .plan-item > span {
        padding: 4px 0;
        border-bottom: none;
    }
    
    .plan-name {
        font-weight: 700;
        margin-top: 8px;
    }
    
    .plan-price {
        margin: 4px 0;
    }
    
    .price-updated {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 18px;
    }
    
    .tool-description {
        font-size: 12px;
    }
    
    .price-current {
        font-size: 18px;
    }
    
    .price-current span {
        font-size: 12px;
    }
    
    .plan-name,
    .plan-price {
        font-size: 12px;
    }
    
    .plan-note {
        font-size: 10px;
    }
    
    .footer {
        font-size: 10px;
        padding: 16px;
    }
}