/* ============================================
   AilynDrip Additional Theme Styles
   ============================================ */

/* Mobile Navigation */
.ad-mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--ad-white);
    z-index: 999;
    padding: var(--ad-spacing-md);
    overflow-y: auto;
}

.ad-mobile-nav.active {
    display: block;
}

.ad-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-mobile-nav-list li {
    border-bottom: 1px solid var(--ad-light-gray);
}

.ad-mobile-nav-list li a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ad-text);
}

.ad-mobile-nav-list li a:hover {
    color: var(--ad-primary-dark);
}

/* Testimonial Slider Styles */
.ad-testimonial-slides {
    position: relative;
    overflow: hidden;
}

.ad-testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ad-testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Counter Animation */
.ad-stat-number {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ad-stat-number.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animations */
.ad-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Product Card Hover Effects */
.ad-product-card {
    background: var(--ad-white);
}

.ad-product-card-image {
    position: relative;
    overflow: hidden;
}

.ad-product-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: var(--ad-transition);
}

.ad-product-card:hover .ad-product-card-image::after {
    opacity: 1;
}

/* Blog Card Styles */
.ad-blog-card {
    background: var(--ad-white);
    border-radius: var(--ad-radius-lg);
    overflow: hidden;
}

/* Timeline Connector */
.ad-timeline-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ad-primary);
}

/* Use Case Cards */
.ad-use-case-card {
    position: relative;
    overflow: hidden;
}

.ad-use-case-card-image {
    position: relative;
}

.ad-use-case-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.05));
}

/* Newsletter Form Focus */
.ad-newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(139,195,74,0.2);
}

/* Smooth Scroll Offset for Fixed Header */
html {
    scroll-padding-top: 80px;
}

/* WordPress Specific */
.wp-block-image img {
    border-radius: var(--ad-radius-md);
}

.wp-block-quote {
    border-left: 4px solid var(--ad-primary);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--ad-dark-gray);
}

.wp-block-button__link {
    background: var(--ad-primary-light) !important;
    color: var(--ad-black) !important;
    border-radius: var(--ad-radius-lg) !important;
    font-weight: 600;
    padding: 12px 28px !important;
}

.wp-block-button__link:hover {
    background: var(--ad-primary) !important;
}

/* Entry Content Styles */
.entry-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.entry-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.entry-content a {
    color: var(--ad-primary-dark);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--ad-accent);
}

.entry-content img {
    border-radius: var(--ad-radius-md);
    margin: 24px 0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--ad-light-gray);
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--ad-gray);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--ad-text);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ad-radius-md);
    font-weight: 500;
    color: var(--ad-text);
    background: var(--ad-light-gray);
    transition: var(--ad-transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--ad-primary-light);
    color: var(--ad-black);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 24px auto;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ad-light-gray);
    border-radius: var(--ad-radius-md);
    font-size: 1rem;
    outline: none;
}

.search-form .search-submit {
    padding: 12px 24px;
    background: var(--ad-primary-light);
    color: var(--ad-black);
    border: none;
    border-radius: var(--ad-radius-md);
    font-weight: 600;
    cursor: pointer;
}

/* Widget Styles */
.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ad-primary);
}

/* Elementor Compatibility */
.elementor-section-wrap {
    font-family: var(--ad-font-primary);
}

.elementor-widget-container {
    font-family: var(--ad-font-primary);
}

/* Ensure Elementor sections can go full width */
.elementor-page .site-content {
    max-width: 100%;
    padding: 0;
}

.elementor-page .entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Elementor Button Styling Override */
.elementor-button {
    font-family: var(--ad-font-primary) !important;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Footer Logo */
.ad-footer-logo img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}
