﻿/* Modern Styles for Schedulo */

/* Text gradient */
.text-gradient {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Hero section with animated background */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    z-index: 0;
}

.hero-bg-animation:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: pulse-bg 15s infinite;
}

@keyframes pulse-bg {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Pulse button animation */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.pulse-btn:hover:after {
    animation: pulse 1.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Floating animation */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Custom buttons */
.btn-custom {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #218838, #1aa179);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #28a745;
    color: #28a745;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Badge styling */
.badge.bg-custom-light {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.text-accent {
    color: #28a745;
}

/* Process steps styling */
.process-step {
    width: 40px;
    height: 40px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Feature card styling */
.feature-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper i {
    font-size: 1.75rem;
    color: #28a745;
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
}

/* Testimonial card styling */
.testimonial-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

/* Pricing card styling */
.pricing-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid #28a745;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-bottom-left-radius: 0.5rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: 1rem;
}

.pricing-price .currency {
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-price .period {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

.pricing-features {
    margin: 2rem 0;
}

.pricing-features ul li {
    margin-bottom: 0.75rem;
}

.pricing-action {
    text-align: center;
}

/* Background gradient */
.bg-gradient-custom {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

/* Stat card styling */
.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Card image height consistency */
@media (min-width: 768px) {
    .card-img-top {
        height: 200px;
        object-fit: cover;
    }
}

/* Minimum height for hero sections */
.min-vh-80 {
    min-height: 80vh;
}

/* Text color with opacity */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Newsletter modal modern styles */
.newsletter-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.newsletter-modal .newsletter-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.newsletter-modal .newsletter-hero .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.newsletter-modal .newsletter-hero .icon-circle i {
    font-size: 1.75rem;
    color: #fff;
}

.newsletter-modal .newsletter-hero .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.newsletter-modal .modal-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Preserve line breaks in simple text content */
#announcementBody { white-space: pre-line; }

.newsletter-modal .newsletter-actions {
    padding: 1rem 1.25rem 1.5rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Brand-aligned buttons */
.btn-primary-site {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: #fff;
}

.btn-primary-site:hover {
    background: linear-gradient(45deg, #218838, #199d7b);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border: 2px solid #28a745;
    color: #28a745;
}

.btn-ghost:hover {
    background: linear-gradient(45deg, rgba(40,167,69,0.08), rgba(32,201,151,0.08));
    color: #218838;
    border-color: #218838;
}

@media (max-width: 576px) {
    .newsletter-modal .newsletter-hero {
        padding: 1.25rem 1rem;
    }
    .newsletter-modal .newsletter-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}