/* ==========================================================================
   ChromeTrack - Components CSS
   Reusable UI components: buttons, cards, forms, icons
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 18px;
    color: var(--medium);
}

/* --------------------------------------------------------------------------
   Cards - Base
   -------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Problem Cards
   -------------------------------------------------------------------------- */
.problem-card {
    background: var(--light);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.problem-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.1);
}

.problem-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
}

.problem-card h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.problem-card p {
    color: var(--medium);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 102, 255, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--medium);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Stat Cards
   -------------------------------------------------------------------------- */
.stat-card {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.pricing-card .price {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--medium);
}

.pricing-features {
    margin-bottom: var(--spacing-md);
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Tags / Badges
   -------------------------------------------------------------------------- */
.tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tag-primary {
    background: var(--primary);
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Checkmark / List Items
   -------------------------------------------------------------------------- */
.checkmark {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 14px;
}

.check-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* --------------------------------------------------------------------------
   Dashboard Preview (Demo Component)
   -------------------------------------------------------------------------- */
.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.dashboard-header {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E0E0E0;
}

.dot:first-child {
    background: #FF5F56;
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27CA40;
}

.dashboard-content {
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.dashboard-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}
