/* ========================================
   AppNetHub - UI Enhancements
   Colorful Modern Design
   ======================================== */

/* Colorful Background */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Beautiful Cards with Glass Effect */
.shadow-sm, .bg-white.rounded {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.shadow-sm:hover, .bg-white.rounded:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.2) !important;
    transform: translateY(-5px);
}

/* Colorful Section Titles with Gradient */
.section-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.5px;
}

/* Beautiful App Images with Glow */
.app-list img {
    border-radius: 18px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
}

.app-list img:hover {
    transform: scale(1.1) rotate(2deg) !important;
    box-shadow: 0 8px 30px rgba(118, 75, 162, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* Colorful Text */
.app-list .title {
    font-weight: 700 !important;
    color: #1a202c !important;
    font-size: 14px !important;
    display: block;
    margin-top: 8px;
}

.app-list .developer {
    color: #4a5568 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.app-list .date {
    color: #718096 !important;
    font-size: 12px !important;
}

/* Colorful Search Box */
.form-control {
    border-radius: 15px !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px !important;
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
    background: white !important;
    transform: translateY(-2px);
}

/* Gradient Buttons */
.btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    padding: 12px 24px !important;
}

.btn-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Beautiful Slider */
.swiper-container {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
}

.swiper-slide img {
    filter: brightness(0.95);
}

/* Gradient More Link */
.more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.more:hover {
    transform: translateX(5px);
    filter: brightness(1.2);
}

/* Glass Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
}

/* Smooth Animations */
* {
    scroll-behavior: smooth;
}

/* Better Spacing */
.container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Colorful Category Badges */
.bg-category {
    background: rgba(255, 255, 255, 0.92) !important;
}

/* Star Rating Colors */
.stars {
    color: #fbbf24 !important;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

/* Topics Cards */
.topics img {
    border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

.topics img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
}

.topic-box {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 15px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin-top: -5px;
    position: relative;
    z-index: 1;
}

/* Add gradient overlay to body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

/* H1 and H2 Titles */
.h1-title, .h2-title {
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Sidebar */
.col-md-3 .shadow-sm {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Featured Apps */
.app-list.featured img {
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3) !important;
}

.app-list.featured img:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 10px 35px rgba(118, 75, 162, 0.5) !important;
}

/* App Details Page */
.app-details {
    background: rgba(255, 255, 255, 0.95) !important;
}

.app-details h2 {
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.app-details b {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* Download Button */
.download-btn, .buy-btn {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 18px 40px !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
    border: none !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.download-btn:hover, .buy-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(118, 75, 162, 0.6) !important;
    color: white !important;
}

.buy-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4) !important;
}

.buy-btn:hover {
    box-shadow: 0 12px 30px rgba(245, 87, 108, 0.6) !important;
}

/* Center download button container */
.app-details > div > a {
    display: block !important;
    text-align: center !important;
    margin-top: 20px !important;
}

/* App Screenshots */
.screenshots img {
    border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Rate the App Section */
.up-down {
    background: transparent !important;
}

.up-down .down, .up-down .up {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
}

.up-down .down {
    border-right: 1px solid rgba(102, 126, 234, 0.2) !important;
}

.up-down button.rate_app {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    cursor: pointer !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.up-down svg {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
}

.up-down .down svg {
    fill: #f5576c !important;
}

.up-down .up svg {
    fill: #667eea !important;
}

.up-down small {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.up-down .down:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.5) !important;
    border-color: transparent !important;
}

.up-down .up:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5) !important;
    border-color: transparent !important;
}

.up-down .down:hover button, .up-down .up:hover button {
    color: white !important;
}

.up-down .down:hover small, .up-down .up:hover small {
    color: white !important;
}

.up-down svg {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
}

.up-down .down:hover svg {
    fill: white !important;
}

.up-down .up:hover svg {
    fill: white !important;
}

/* Add Comment Button */
.add-comment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.add-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

/* Star Rating Display */
.stars svg {
    width: 18px !important;
    height: 18px !important;
    fill: #fbbf24 !important;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}
