/**
 * Property Awards Enhanced Styles
 * Custom CSS for India's First Public Voting Real Estate Awards
 */

/* ===========================
   HERO SECTION ENHANCEMENTS
   =========================== */

.bg-gradient-primary {
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Hover Effects */
.hover-elevate-up {
    transition: all 0.3s ease;
}

.hover-elevate-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Badge Pulse Animation */
@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge.bg-warning {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* ===========================
   COMPARISON TABLE
   =========================== */

.table-row-bordered tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.table-row-bordered tbody tr:hover {
    background-color: #f9fafb;
}

.table-row-bordered th {
    padding: 1rem;
    font-weight: 600;
}

.table-row-bordered td {
    padding: 1rem;
    vertical-align: middle;
}

/* Icon Animations */
@keyframes check-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.table .fa-check:hover,
.table .fa-times:hover {
    animation: check-bounce 0.5s ease;
}

/* ===========================
   VOTING PROCESS CARDS
   =========================== */

.card.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Number Badge Circles */
.w-80px {
    width: 80px !important;
}

.h-80px {
    height: 80px !important;
}

/* Icon Hover Effect */
.card-body i[class*="fa-"] {
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-body i[class*="fa-"] {
    transform: scale(1.1);
}

/* ===========================
   TRUST SECTION
   =========================== */

.bg-light-success {
    background-color: #f0fdf4 !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* List Item Hover */
.list-unstyled li {
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.list-unstyled li:hover {
    padding-left: 0.5rem;
}

/* ===========================
   CTA BUTTON ENHANCEMENTS
   =========================== */

.btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #1f2937;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ===========================
   STATISTICS COUNTERS
   =========================== */

.fs-2x {
    font-size: 2.5rem !important;
    font-weight: 700;
}

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

.fs-2x {
    animation: count-up 0.6s ease-out;
}

/* ===========================
   SEPARATOR ENHANCEMENTS
   =========================== */

.separator {
    display: block;
    height: 1px;
    background-color: #e5e7eb;
    margin: 1.5rem 0;
}

.separator.separator-dashed {
    background-image: linear-gradient(to right, transparent 50%, currentColor 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-color: transparent;
}

.separator.border-white {
    background-color: #fff;
}

.separator.border-white.separator-dashed {
    background-image: linear-gradient(to right, transparent 50%, #fff 50%);
}

/* ===========================
   BADGE VARIATIONS
   =========================== */

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.badge-light-primary {
    background-color: #dbeafe;
    color: #1e3a8a;
}

.badge-light-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-light-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* ===========================
   CARD BORDER COLORS
   =========================== */

.border-primary {
    border-color: #3b82f6 !important;
    border-width: 2px !important;
}

.border-success {
    border-color: #10b981 !important;
    border-width: 2px !important;
}

.border-warning {
    border-color: #f59e0b !important;
    border-width: 2px !important;
}

/* ===========================
   TEXT UTILITIES
   =========================== */

.text-gray-700 {
    color: #374151 !important;
}

.text-gray-800 {
    color: #1f2937 !important;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.90;
}

/* ===========================
   RESPONSIVE UTILITIES
   =========================== */

@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem !important;
    }
    
    .fs-3 {
        font-size: 1.5rem !important;
    }
    
    .py-15 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .btn,
    .badge.bg-warning {
        animation: none;
    }
    
    .hover-elevate-up:hover {
        transform: none;
        box-shadow: none !important;
    }
}

/* ===========================
   ACCESSIBILITY ENHANCEMENTS
   =========================== */

.card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
