@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

html {
    background-color: #17212b;
    min-height: 100%;
    height: 100%;
}

body {
    background-color: #17212b !important; /* Force background color */
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
}

/* Add formatted link styles to match channel.php */
.formatted-link {
    color: #b3e5fc; /* Light baby blue color */
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(179, 229, 252, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.formatted-link:hover {
    background: rgba(179, 229, 252, 0.2);
    text-decoration: underline;
    color: #e3f2fd; /* Lighter shade on hover */
}

.formatted-link strong {
    color: inherit;
}

.invalid-url {
    color: #e57373;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(229, 115, 115, 0.1);
}

.navbar {
    background: linear-gradient(to right, #232f3d, #1a2735);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a i {
    margin-right: 0.3rem;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0.6rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #64b5f6;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.025), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.02), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.03), transparent 35%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

.background-highlights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.highlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.035;
    animation: floatAnimation 12s infinite ease-in-out;
    mix-blend-mode: screen;
}

.highlight:nth-child(1) {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 1);
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.highlight:nth-child(2) {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 1);
    top: 50%;
    right: 15%;
    animation-delay: -4s;
}

.highlight:nth-child(3) {
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 1);
    top: 25%;
    right: 25%;
    animation-delay: -8s;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(1.05);
    }
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.5), transparent);
}

.hero-section h1 {
    font-size: clamp(4.5rem, 10vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    line-height: 1.1;
    padding: 0.5rem 0;
    transform: scale(1.05);
}

.latest-post-container {
    background: rgba(43, 57, 77, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-post-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.store-stats {
    background: linear-gradient(135deg, rgba(41, 58, 74, 0.95), rgba(30, 40, 54, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    margin: 2rem auto 3rem;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 181, 246, 0.2);
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.store-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 181, 246, 0.12), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 136, 229, 0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.store-stats p {
    position: relative;
    z-index: 1;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.store-stats i {
    color: #64b5f6;
    font-size: 1.8em;
    filter: drop-shadow(0 2px 4px rgba(100, 181, 246, 0.4));
    animation: pulse 2s infinite;
}

.store-stats:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(100, 181, 246, 0.3);
    border-color: rgba(100, 181, 246, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 1rem;
}

.product {
    background: rgba(30, 40, 54, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.product::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(45deg, rgba(100, 181, 246, 0.5), rgba(30, 136, 229, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(100, 181, 246, 0.2);
}

.button {
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(100, 181, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 30px rgba(100, 181, 246, 0.3),
        0 0 0 1px rgba(100, 181, 246, 0.2);
}

.navbar a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-section {
    text-align: center;
    padding: 1rem 0;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.latest-post-container {
    background: #1e2836;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.latest-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-post-header h3 {
    color: #64b5f6;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-channel-btn {
    background: transparent;
    color: #64b5f6;
    padding: 0.5rem 1rem;
    border: 1px solid #64b5f6;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.view-channel-btn:hover {
    background: #64b5f6;
    color: #17212b;
}

.view-channel-btn i {
    font-size: 1rem;
}

.store-stats {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.store-stats p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: white;
    margin: 0;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.blue-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
    flex-wrap: wrap;
}

.product {
    flex: 0 1 calc(50% - 2rem);
    max-width: 400px;
    min-width: 280px;
    margin: 1rem;
    background: #1e2836;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #161f2b;
    padding: 0;
    display: block;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product h3 {
    color: #64b5f6;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.product p {
    color: #8b96a2;
    margin: 0.5rem 0;
    font-weight: bold;
}

.product .price {
    color: #64b5f6;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .products-container {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .product {
        flex: 0 1 calc(100% - 2rem);
        margin: 0.5rem;
    }
    
    .product-content {
        padding: 1rem;
    }
}

.latest-post-content {
    color: #e4e6eb;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.latest-post-content strong {
    color: inherit;
    font-weight: 700;
}

.latest-post-content em {
    color: inherit;
    font-style: italic;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #8b96a2;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: #64b5f6;
    font-size: 1rem;
}

.no-posts {
    text-align: center;
    padding: 2rem;
    color: #8b96a2;
}

.no-posts i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #64b5f6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(30, 40, 54, 0.7);
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-link.telegram {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 136, 204, 0.2));
}

.social-link.instagram {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(225, 48, 108, 0.2));
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.telegram:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.3));
    border-color: rgba(0, 136, 204, 0.5);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(225, 48, 108, 0.3));
    border-color: rgba(225, 48, 108, 0.5);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.2);
}

.social-link i {
    font-size: 1.4rem;
}

.social-link.telegram i {
    color: #0088cc;
}

.social-link.instagram i {
    color: #e1306c;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.blue-button {
    background: rgba(30, 40, 54, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.blue-button.reviews {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(30, 136, 229, 0.2));
    color: #64b5f6;
}

.blue-button.contact {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(56, 142, 60, 0.2));
    color: #81c784;
}

.blue-button:hover {
    transform: translateY(-3px);
}

.blue-button.reviews:hover {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2), rgba(30, 136, 229, 0.3));
    border-color: rgba(100, 181, 246, 0.5);
    box-shadow: 0 10px 20px rgba(100, 181, 246, 0.2);
}

.blue-button.contact:hover {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.2), rgba(56, 142, 60, 0.3));
    border-color: rgba(129, 199, 132, 0.5);
    box-shadow: 0 10px 20px rgba(129, 199, 132, 0.2);
}

.hero-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 60px; /* Keep padding for crown space */
}

.hero-title .crown {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 3rem; /* Increased from 2rem to 3rem */
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
    z-index: 1;
    animation: floatCrown 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-title {
        padding-top: 50px;
    }
    
    .hero-title .crown {
        font-size: 2.5rem; /* Increased from 1.8rem to 2.5rem */
        top: 45x;
    }
    
    .hero-title h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

@keyframes floatCrown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateX(-50%) translateY(0); /* Remove rotation, keep vertical movement */
    }
    50% {
        transform: translateX(-50%) translateY(-2px); /* Remove rotation, keep vertical movement */
    }
}

.hero-title i {
    font-size: clamp(3.5rem, 8vw, 4.5rem);
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}