/**
 * ==========================================
 * 3. PAGE-SPECIFIC STYLES
 * Hero, Listings, Notifications, Profile, etc.
 * ==========================================
 */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #10b981, #06b6d4);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f59e0b, #ec4899);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    opacity: 0.6;
}

.pulse-animation {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hero CTA Buttons */
.hero-cta-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.hero-cta-primary:hover .btn-shine {
    left: 100%;
}

.hero-cta-secondary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Hero Stats */
.hero-stat {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

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

.hero-stat:hover .stat-icon {
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

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

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ============================================================
   LISTING PAGES
   ============================================================ */
.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.listing-header h1,
.listing-header h2 {
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    color: #1a1a1a;
}

.listing-header i {
    font-size: 2.5rem;
}

.filter-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-section {
    flex: 1;
    min-width: 250px;
}

.filter-section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section form {
    display: flex;
    gap: 0.75rem;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.phone-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

.phone-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.phone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.phone-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.phone-item:hover::before {
    left: 0;
    opacity: 0.05;
}

.phone-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.phone-item:hover img {
    transform: scale(1.05);
}

.phone-item h3 {
    margin-top: 15px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s ease;
}

.phone-item:hover h3 {
    color: #6366f1;
}

.phone-item p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
}

.empty-state {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notification-bell-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: inherit !important;
    text-decoration: none !important;
}

.notification-bell-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.notification-bell-link i {
    font-size: 1.25rem;
    color: inherit;
}

.navbar-dark .notification-bell-link {
    color: #fff !important;
}

.navbar-dark .notification-bell-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.notification-dropdown {
    max-height: 500px;
    overflow-y: auto;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.notification-item {
    padding: 12px 0;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.bg-light {
    background-color: #f0f7ff !important;
    border-radius: 0.25rem;
    padding: 10px 8px;
}

.notification-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    margin-bottom: 4px;
}

.notification-item-message {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #999;
}

.notification-item-type {
    font-size: 0.65rem;
    font-weight: 500;
}

#notificationBadge,
#adminNotificationBadge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#notificationContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9998;
    max-width: 400px;
}

.notification-toast {
    background: white;
    border-left: 4px solid #0d6efd;
    border-radius: 0.5rem;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.notification-toast.success {
    border-left-color: #28a745;
}

.notification-toast.warning {
    border-left-color: #ffc107;
}

.notification-toast.danger {
    border-left-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast.removing {
    animation: slideOut 0.3s ease;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-card {
    transition: all 0.3s ease;
    cursor: default;
    border-left: 3px solid transparent;
}

.notification-card:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
    border-left-color: #6366f1;
    transform: translateX(4px);
}

.notification-card.border-start {
    border-radius: 0.375rem;
}

#notificationBell {
    transition: all 0.3s ease;
}

#notificationBell:hover {
    transform: scale(1.1) rotate(15deg);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-container {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pagination-item {
    display: inline-block;
}

.pagination-link,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.pagination-link:hover,
.page-link:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.pagination-link.active,
.page-item.active .page-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

.breadcrumb-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.breadcrumb-nav .breadcrumb-item a {
    color: #6366f1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: #a855f7;
    text-decoration: underline !important;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #64748b;
    font-weight: 600;
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-dark .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-dark .breadcrumb-item.active {
    color: #fff;
    opacity: 0.8;
}

/* ============================================================
   SHARE SECTION
   ============================================================ */
.share-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.share-buttons .btn {
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    font-weight: 500;
    border: none;
    color: white;
}

.share-buttons .btn-facebook {
    background-color: #3b5998;
    transition: all 0.3s ease;
}

.share-buttons .btn-facebook:hover {
    background-color: #2d4373;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

.share-buttons .btn-twitter {
    background-color: #1DA1F2;
    transition: all 0.3s ease;
}

.share-buttons .btn-twitter:hover {
    background-color: #1a91da;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.share-buttons .btn-linkedin {
    background-color: #0077b5;
    transition: all 0.3s ease;
}

.share-buttons .btn-linkedin:hover {
    background-color: #005885;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.share-buttons .btn-whatsapp {
    background-color: #25d366;
    transition: all 0.3s ease;
}

.share-buttons .btn-whatsapp:hover {
    background-color: #1ba857;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.share-buttons .btn-telegram {
    background-color: #0088cc;
    transition: all 0.3s ease;
}

.share-buttons .btn-telegram:hover {
    background-color: #006ba3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.share-buttons .btn-email {
    background-color: #EA4335;
    transition: all 0.3s ease;
}

.share-buttons .btn-email:hover {
    background-color: #d33426;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

/* ============================================================
   USER PROFILE
   ============================================================ */
.bg-gradient {
    position: relative;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
}

.info-item {
    transition: all 0.2s ease;
}

.info-item:hover {
    transform: translateX(5px);
}


.hero-section .icon-wrapper {
    transition: all 0.3s ease;
}

.hero-section .icon-wrapper:hover {
    transform: scale(1.05);
}

/* ============================================================
   UTILITIES & MISC
   ============================================================ */
.login-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
}

.hover-shadow-lg {
    transition: box-shadow 0.3s ease;
}

.hover-shadow-lg:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-8px);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

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

#scrollTopBtn {
    position: fixed;
    right: 1.5rem;
    bottom: 2.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    display: none;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.counter {
    color: var(--bs-primary);
    font-weight: 700;
}

.counter.size-2rem {
    font-size: 2rem;
}

.counter.size-2-5rem {
    font-size: 2.5rem;
}

.counter.size-1-5rem {
    font-size: 1.5rem;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

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

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}