/* Components - Enhanced Colors */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn--secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.btn--outline {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-hover);
    color: var(--color-accent-hover);
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-primary);
}

.btn--ghost:hover {
    background: var(--color-bg-card);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: var(--font-size-lg);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), var(--shadow-glow);
    border-color: var(--color-border-accent);
}

.card:hover::before {
    opacity: 1;
}

.card__content {
    position: relative;
    z-index: 1;
}

/* Feature Card */
.feature-card {
    text-align: center;
}

.feature-card__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-2xl);
    color: white;
    box-shadow: var(--shadow-glow);
}

.feature-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card__description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Pricing Card */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card--popular {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
    box-shadow: var(--shadow-glow-strong);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-glow);
}

.pricing-card__price {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin: var(--space-md) 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card__price span {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-normal);
    -webkit-text-fill-color: var(--color-text-secondary);
}

.pricing-card__features {
    list-style: none;
    margin: var(--space-lg) 0;
    flex-grow: 1;
}

.pricing-card__features li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
}

.pricing-card__features li i.fa-check {
    color: var(--color-success);
}

.pricing-card__features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-card__features li.disabled i {
    color: var(--color-error);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input--error {
    border-color: var(--color-error);
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px var(--color-error-light);
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: var(--color-bg-tertiary);
    border: var(--border-glass);
    border-radius: var(--border-radius-xl);
    color: var(--color-text-secondary);
}

.badge--primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.badge--secondary {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

.badge--success {
    background: var(--color-success-light);
    color: var(--color-success);
    border-color: var(--color-success);
}

/* Tabs */
.tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--color-text-primary);
    border-color: var(--color-accent);
    background: var(--color-bg-card-hover);
}

.tab--active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* Accordion */
.accordion {
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.accordion__item {
    border-bottom: var(--border-glass);
}

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion__header:hover {
    background: var(--color-bg-card-hover);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion__content--open {
    max-height: 500px;
}

.accordion__body {
    padding: var(--space-lg);
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
}

/* Toggle Switch */
.toggle {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toggle__switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: 32px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle__switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--color-text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle__input:checked + .toggle__switch {
    background: var(--gradient-primary);
    border-color: transparent;
}

.toggle__input:checked + .toggle__switch::after {
    transform: translateX(28px);
    background: white;
}

.toggle__input {
    display: none;
}

/* Search Bar */
.search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search__input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--color-bg-card);
    border: var(--border-glass-accent);
    border-radius: var(--border-radius-lg);
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.search__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    background: var(--color-accent-light);
}

/* Code Block */
.code-block {
    background: var(--color-bg-card);
    border: var(--border-glass-accent);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.code-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border-bottom: var(--border-glass);
}

.code-block__lang {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-weight: var(--font-weight-medium);
}

.code-block__copy {
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-secondary);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-block__copy:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.code-block__content {
    padding: var(--space-lg);
    overflow-x: auto;
    background: var(--color-bg-secondary);
}

.code-block__content pre {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.code-block__content code {
    color: var(--color-text-primary);
    background: none;
    padding: 0;
}

/* Stats */
.stat {
    text-align: center;
}

.stat__number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat__label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

/* Testimonial Card */
.testimonial-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-card__quote {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.testimonial-card__name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.testimonial-card__title {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* CTA Card */
.cta__card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.cta__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    color: white;
    margin-bottom: var(--space-md);
}

.cta__subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}