/*!
 * Custom Styles for Brutal Domains
 * Version: 1.0.0
 */

/* Guest Navigation Styles (only for guest layout) */
body:not(.g-sidenav-show) .navbar,
body:not(.g-sidenav-show) nav.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(200, 200, 200, 0.18);
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.04);
    transition: background 0.3s, box-shadow 0.3s;
}

/* Only apply nav-link styles to guest navigation, not app navigation */
body:not(.g-sidenav-show) .navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #000000 !important;
}

body:not(.g-sidenav-show) .navbar-nav .nav-link:hover,
body:not(.g-sidenav-show) .navbar-nav .nav-link:focus {
    color: #774dd3 !important;
}

body:not(.g-sidenav-show) .navbar-nav .nav-link.active {
    color: #000000 !important;
    font-weight: 600;
}

.nav-register-btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-top: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Homepage Article Cards */
.article-card-home {
    transition: all 0.3s ease;
    border-left: 3px solid transparent !important;
}

.article-card-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-left-color: #774dd3 !important;
}

.articles-list a:hover .article-card-home h5 {
    color: #774dd3 !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Animated Button Styles */
.animated-btn {
    position: relative;
    padding: 1.4rem 4.2rem;
    font-size: 1.4rem;
    color: #344767;
    background: white;
    border: none;
    animation: animate 5s linear infinite;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

@keyframes animate {
    0% {
        background: white;
        box-shadow: none;
    }
    20% {
        background: white;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                    0 0 10px rgba(255, 255, 255, 0.5);
    }
    40% {
        background: white;
        box-shadow: none;
    }
    60% {
        background: white;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                    0 0 10px rgba(255, 255, 255, 0.5);
    }
    80% {
        background: white;
        box-shadow: none;
    }
    100% {
        background: white;
        box-shadow: none;
    }
}

/* Footer Styles */
.footer {
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Testimonials */
.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Testimonial Stars */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.testimonial-rating i {
    font-size: 0.875rem;
    line-height: 1;
}

/* Testimonial Stars */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.testimonial-rating i {
    font-size: 0.875rem;
    line-height: 1;
}

/* Text Gradient and Feature Cards */
.text-gradient {
    background: linear-gradient(45deg, #cb0c9f, #344767);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Rotating Text Animation */
.rotating-text,
.rotating-subtitle {
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.rotating-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.rotating-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Animated Shapes */
.shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.shape-1 {
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #cb0c9f 0%, transparent 70%);
    animation: float 15s infinite;
}

.shape-2 {
    bottom: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #344767 0%, transparent 70%);
    animation: float 20s infinite reverse;
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    animation: pulse 10s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.05;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
}

/* Enhanced CTA Button */
.cta-wrapper {
    position: relative;
    z-index: 1;
}

.animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.arrow-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 20px;
    animation: arrowBounce 1.5s infinite;
}

.arrow {
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

@keyframes mouseWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrowBounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Make scroll indicator responsive */
@media (max-height: 700px) {
    .scroll-indicator {
        display: none;
    }
}

/* Footer Styles */
.footer-link {
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s, text-decoration 0.2s;
}

.footer-link:hover,
.footer-link:focus {
    color: #344767 !important;
    text-decoration: underline;
    opacity: 1 !important;
}

.payment-icons i {
    transition: color 0.2s ease;
    color: #9ca3af;
}

.payment-icons i:hover {
    color: #6b7280 !important;
}

@media (max-width: 767.98px) {
    .footer .row.align-items-start > div {
        align-items: flex-start !important;
        text-align: left !important;
    }
    .footer .payment-icons {
        justify-content: center !important;
    }
}
