/* Custom styles for buttons that need to be applied across all pages */
a.cta-button,
.cta-button,
.nav-link.cta-button,
a[href="#features"].cta-button,
a[href="index.html#download"].cta-button,
.app-store-button.cta-button {
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

a.cta-button:hover,
.cta-button:hover,
.nav-link.cta-button:hover,
a[href="#features"].cta-button:hover,
a[href="index.html#download"].cta-button:hover,
.app-store-button.cta-button:hover {
    background-color: #00ff00;
    color: #000000;
    box-shadow: 0 0 25px #00ff00;
    transform: translateY(-3px);
}

/* Header-specific button styles */
nav.main-nav .nav-list .nav-item a.cta-button,
nav.main-nav .nav-list .nav-item .nav-link.cta-button,
nav.main-nav .nav-list .nav-item a[href="index.html#download"].cta-button {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40px;
}

/* Make sure the nav item itself is also centered */
nav.main-nav .nav-list .nav-item:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Store Button */
.app-store-button {
    display: inline-flex;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.app-store-button:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
}

.app-store-button img {
    height: 40px;
    width: auto;
}

/* App Store Button inside cta-buttons container */
.cta-buttons .app-store-button {
    margin: 0 10px;
}

/* Banner CTA section */
.banner-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Special offer button styles */
a.cta-button.special-offer,
.cta-button.special-offer {
    background-color: #ff6600;
    color: white;
    border: 2px solid #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
    animation: pulse 2s infinite;
    margin-left: 10px;
}

a.cta-button.special-offer:hover,
.cta-button.special-offer:hover {
    background-color: #ff8533;
    border-color: #ff8533;
    color: white;
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.8);
}

a.cta-button.special-offer i,
.cta-button.special-offer i {
    margin-right: 8px;
}

/* Pulsing animation for special offer button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 102, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
    }
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    nav.main-nav .nav-list .nav-item a.cta-button,
    nav.main-nav .nav-list .nav-item a[href="index.html#download"].cta-button {
        margin: 1.5rem auto 0;
        width: 80%;
        max-width: 250px;
    }
    a.cta-button.special-offer,
    .cta-button.special-offer {
        margin-top: 10px;
        margin-left: 0;
    }
}

/* iOS-specific styles for better button alignment */
@supports (-webkit-touch-callout: none) {
    a.cta-button,
    .cta-button,
    .nav-link.cta-button,
    a[href="#features"].cta-button,
    a[href="index.html#download"].cta-button,
    .app-store-button.cta-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: auto;
        min-width: 140px;
        padding: 0.5rem 1.5rem;
        line-height: 1.2;
        -webkit-box-align: center;
        -webkit-box-pack: center;
    }
    
    /* Fix for vertical alignment on iOS */
    .banner-cta,
    .nav-list {
        display: flex;
        align-items: center;
    }

    /* Special adjustments for header nav button */
    nav.main-nav .nav-list .nav-item a.cta-button,
    nav.main-nav .nav-list .nav-item .nav-link.cta-button,
    nav.main-nav .nav-list .nav-item a[href="index.html#download"].cta-button {
        margin: 1.5rem auto 0;
        height: auto;
        min-height: 40px;
        width: 80%;
        max-width: 250px;
    }
    
    /* Special fix for blog page header nav on iOS */
    .blog-header + nav.main-nav .nav-list .nav-item a.cta-button,
    body.blog nav.main-nav .nav-list .nav-item a.cta-button {
        margin: 1.5rem auto 0;
        width: 80%;
        max-width: 250px;
        height: auto;
        min-height: 40px;
        background-color: transparent;
        color: #00ff00;
        border: 2px solid #00ff00;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    }
}

/* RSS Button Styles */
.blog-actions {
    margin-top: 20px;
    text-align: center;
}

.rss-button {
    display: inline-flex;
    align-items: center;
    background-color: #f26522; /* Standard RSS orange color */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.rss-button i {
    margin-right: 8px;
}

.rss-button:hover {
    background-color: #e54b00; /* Darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rss-button:active {
    transform: translateY(0);
}

/* Dark theme adjustments */
.dark-theme .rss-button {
    background-color: #f26522;
    color: #ffffff;
}

.dark-theme .rss-button:hover {
    background-color: #e54b00;
}
