/* public/assets/css/main.css
 * Sleek Premium Stylesheet for CouponForYou.xyz
 */

:root {
    --primary: #5c3cf5;
    --primary-light: #ece9ff;
    --secondary: #ff5a5f;
    --dark: #0f1016;
    --light-bg: #f5f6fa;
    --text-dark: #202230;
    --text-muted: #6e7282;
    --white: #ffffff;
    --border-color: #e6e8f0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Gradient Background Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Base button and micro interactions */
.btn {
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #4421df;
    border-color: #4421df;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 60, 245, 0.3);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgb(15, 12, 41) 0%, rgb(48, 43, 99) 50.2%, rgb(36, 36, 62) 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
}

/* Custom Cards */
.coupon-card, .store-card, .hover-shadow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coupon-card:hover, .hover-shadow:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.store-card {
    background: var(--white);
    border: 1px solid var(--border-color);
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(92, 60, 245, 0.08) !important;
}

/* Badges */
.badge-discount {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
}

.badge-deal {
    background-color: #ffebeb;
    color: var(--secondary);
}

/* Navigation Dropdown Item Hover styling */
.dropdown-menu-item:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* AJAX Search Suggestions Box styling */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions .list-group-item:hover {
    background-color: var(--light-bg);
}

/* Social link buttons */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Line clamp multi-line text limitations */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active Section Indicator Underlines */
.section-title {
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Tab Active custom look */
.nav-pills-custom .nav-link {
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.nav-pills-custom .nav-link.active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary);
}

/* Sticky Mobile Footer Ads layout */
.sticky-mobile-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

/* Grayscale filters for expired coupons visual style */
.grayscale-filter {
    filter: grayscale(80%);
}

.btn-coupon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: var(--white);
}

.btn-coupon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
