/* 
* CaptchaAI Enhanced Styles
* Clean, focused styling to match screenshot design
*/

/* Global Font Application */
* {
    font-family: 'Cairo', sans-serif !important;
}

body {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Dashboard Hero Section */
.dashboard-hero {
    background: #f8f9fa !important;
    min-height: 100vh;
}

.dashboard-hero .navbar {
    border-bottom: 1px solid #e9ecef !important;
}

.dashboard-hero .navbar-brand {
    font-family: 'Cairo', sans-serif !important;
    text-decoration: none;
}

.dashboard-hero .navbar-brand:hover {
    text-decoration: none;
    opacity: 0.8;
}

.dashboard-hero .alert-danger {
    background: #ff001e !important;
    border: none !important;
    font-size: 0.95rem;
}

.dashboard-hero .alert-danger a {
    text-decoration: underline;
}

.dashboard-hero .alert-danger a:hover {
    text-decoration: none;
}

.dashboard-hero h1 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 2rem !important;
}

.dashboard-hero .badge {
    font-size: 0.8rem;
    font-weight: 500;
    background: #ff001e !important;
}

.dashboard-hero .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif !important;
}

.dashboard-hero .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.dashboard-hero .feature-card {
    padding: 2rem 1rem;
}

.dashboard-hero .feature-card i {
    color: #6c757d;
    margin-bottom: 1rem;
}

.dashboard-hero .feature-card h5 {
    font-family: 'Cairo', sans-serif !important;
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dashboard-hero .feature-card p {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Global Button Styling for CaptchaAI */
.btn-danger {
    background: #ff001e !important;
    border-color: #ff001e !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600;
}

.btn-danger:hover {
    background: #cc0018 !important;
    border-color: #cc0018 !important;
}

.btn-outline-danger {
    border-color: #ff001e !important;
    color: #ff001e !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: #ff001e !important;
    border-color: #ff001e !important;
    color: white !important;
}

/* Text Colors */
.text-danger {
    color: #ff001e !important;
}

/* Ensure Font Awesome icons load properly */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Icon styling in sections */
.bg-danger i {
    color: white !important;
}

.text-danger i {
    color: #ff001e !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-hero h1 {
        font-size: 2rem !important;
    }
    
    .dashboard-hero p {
        font-size: 1rem !important;
    }
    
    .dashboard-hero .badge {
        font-size: 0.75rem;
        display: inline-block;
        margin: 0.2rem;
    }
    
    .dashboard-hero .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-hero .feature-card i {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .dashboard-hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .dashboard-hero p {
        font-size: 0.95rem !important;
    }
    
    .dashboard-hero .container {
        padding: 2rem 1rem !important;
    }
    
    .dashboard-hero .feature-card {
        padding: 1rem;
    }
    
    .dashboard-hero .feature-card i {
        font-size: 2.2rem !important;
    }
    
    .dashboard-hero .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Enhanced Card Styling */
.captcha-card {
    border: 1px solid var(--captcha-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--captcha-shadow);
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.captcha-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
}

.captcha-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--captcha-shadow-lg);
    border-color: var(--captcha-primary);
}

.captcha-card .card-body {
    padding: 2rem;
}

.captcha-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--captcha-secondary);
    margin-bottom: 1rem;
}

.captcha-card .card-text {
    color: var(--captcha-gray);
    line-height: 1.6;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 0, 30, 0.3);
}

/* Enhanced Button Styling */
.btn-captcha {
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 30, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-captcha:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 0, 30, 0.4);
    color: white;
    background: linear-gradient(135deg, #cc0018 0%, #a6001a 100%);
}

.btn-captcha-outline {
    background: transparent;
    border: 2px solid var(--captcha-primary);
    color: var(--captcha-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-captcha-outline:hover {
    background: var(--captcha-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 0, 30, 0.3);
}

/* Product Section Styling */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--captcha-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--captcha-shadow-lg);
}

.product-icon {
    font-size: 3rem;
    color: var(--captcha-primary);
    margin-bottom: 1.5rem;
}

/* Pricing Card Styling */
.pricing-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--captcha-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--captcha-primary);
    box-shadow: 0 8px 30px rgba(255, 0, 30, 0.15);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--captcha-shadow-lg);
}

.pricing-header {
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    margin: -1px -1px 0 -1px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--captcha-gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--captcha-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check-icon {
    color: #28a745;
    margin-right: 0.75rem;
    font-weight: 600;
}

/* Footer Styling */
.captcha-footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #adb5bd;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.captcha-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
}

.captcha-footer h5, .captcha-footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.captcha-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.captcha-footer a:hover {
    color: var(--captcha-primary);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--captcha-secondary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--captcha-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Badge Styling */
.captcha-badge {
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .captcha-card .card-body,
    .product-card,
    .pricing-card .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
}

/* Logo Animation */
@keyframes logo-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 30, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 30, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 30, 0.5));
    }
}

.captcha-logo:hover {
    animation: logo-glow 2s ease-in-out infinite;
}

/* Utility Classes */
.text-captcha {
    color: var(--captcha-primary) !important;
}

.bg-captcha {
    background: linear-gradient(135deg, #ff001e 0%, #cc0018 100%) !important;
    color: white;
}

.border-captcha {
    border-color: var(--captcha-primary) !important;
}

.shadow-captcha {
    box-shadow: 0 4px 12px rgba(255, 0, 30, 0.3) !important;
}

.shadow-captcha-lg {
    box-shadow: 0 8px 25px rgba(255, 0, 30, 0.3) !important;
}

/* Loading Animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0),
                     .5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: var(--captcha-primary);
        text-shadow: .25em 0 0 rgba(0, 0, 0, 0),
                     .5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow: .25em 0 0 var(--captcha-primary),
                     .5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 var(--captcha-primary),
                     .5em 0 0 var(--captcha-primary);
    }
}