/* Custom CSS for CodeLoom - Stripe Marketplace Inspired Design */

:root {
    --primary-color: #635bff;
    --primary-hover: #5a54e6;
    --secondary-color: #00d4aa;
    --accent-color: #ff5722;
    --text-primary: #1a1f36;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
    --gradient-secondary: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

/* Navigation Styles */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-container {
    width: 300px;
}

.search-container .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.search-container .input-group-text {
    border-radius: 8px 0 0 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.display-4 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.intro-section {
    border-left: 4px solid var(--primary-color);
    background: rgba(99, 91, 255, 0.05) !important;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-1 {
    top: 20%;
    left: 10%;
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    color: white;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 20%;
    background: linear-gradient(135deg, #00d4aa 0%, #10b981 100%);
    color: white;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    background: linear-gradient(135deg, #ff5722 0%, #f59e0b 100%);
    color: white;
    animation-delay: 4s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-content h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Categories Sidebar */
.categories-sidebar {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-item:hover,
.category-item.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.request-demo {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.tool-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Trend Cards */
.trend-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

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

.trend-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.trend-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.trend-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trend-tag {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: #1a1f36 !important;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .feature-card {
        position: relative !important;
        margin-bottom: 1rem;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .search-container {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-buttons {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .categories-sidebar {
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tool-card,
    .trend-card {
        padding: 1.5rem;
    }
    
    .categories-sidebar {
        padding: 1.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.tool-card,
.trend-card {
    animation: fadeInUp 0.6s ease-out;
}

.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.2s; }
.tool-card:nth-child(4) { animation-delay: 0.3s; }

/* Pricing Styles */
.pricing-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.pricing-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.pricing-footer {
    margin-top: auto;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 1rem;
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 91, 255, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Terms and Privacy Styles */
.terms-header,
.privacy-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.terms-document,
.privacy-document {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.terms-section,
.privacy-section {
    margin-bottom: 3rem;
}

.terms-section:last-child,
.privacy-section:last-child {
    margin-bottom: 0;
}

.terms-section h2,
.privacy-section h2 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.terms-section h3,
.privacy-section h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.terms-section p,
.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.terms-section ul,
.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 0.5rem;
}

.contact-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .terms-document,
    .privacy-document {
        padding: 2rem;
    }
    
    .terms-section,
    .privacy-section {
        margin-bottom: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.category-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Footer Contact Information Fix */
.footer .contact-info .text-muted {
    color: #0dcaf0 !important;
}
.text-muted {
    --bs-text-opacity: 1;
    color: #0dcaf0 !important;
}
.footer .contact-info p {
    color: #e9ecef;
}

.footer .contact-info strong {
    color: #ffffff;
}
