/**
 * FILE: /var/www/html/assets/css/product-pages.css
 * DESCRIPTION: Shared styles for product pages (KVM, LXC, Dedicated)
 * Extracted from inline styles to improve performance and maintainability
 */

/* Navigation & Header */
.login-btn {
    background: linear-gradient(135deg, #00ffff, #0099cc) !important;
    color: #000 !important;
    padding: 4px 10px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3) !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
}
.login-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4) !important; }
.logo-link { display: flex; align-items: center; text-decoration: none; transition: transform 0.3s ease, opacity 0.3s ease; }
.logo-link:hover { transform: scale(1.05); opacity: 0.9; }
.logo-image { height: 70px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a { color: #ffffff; text-decoration: none; padding: 10px 15px; display: block; transition: color 0.3s ease; }
.nav-item > a:hover { color: #00ffff; }
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dropdown-toggle::after { content: '▼'; font-size: 0.7em; transition: transform 0.3s ease; }
.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(0, 30, 60, 0.98));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 10px; padding: 10px 0; min-width: 200px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2); z-index: 1000;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block; padding: 12px 20px; color: #ffffff; text-decoration: none;
    transition: all 0.3s ease; border-left: 3px solid transparent;
}
.dropdown-menu a:hover { background: rgba(0, 255, 255, 0.1); border-left-color: #00ffff; color: #00ffff; padding-left: 25px; }

/* Cart */
.cart-icon {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 20px;
    background: linear-gradient(45deg, rgba(0,255,255,0.2), rgba(0,128,255,0.2));
    border: 1px solid rgba(0,255,255,0.4); border-radius: 25px; transition: all 0.3s ease;
}
.cart-icon:hover {
    background: linear-gradient(45deg, rgba(0,255,255,0.3), rgba(0,128,255,0.3)) !important;
    box-shadow: 0 0 15px rgba(0,255,255,0.4); transform: translateY(-50%) scale(1.05) !important;
}

/* Page Sections */
.service-header {
    padding: 150px 20px 80px; text-align: center;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.9), rgba(0, 30, 60, 0.9));
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}
.service-header h1 { font-size: 3rem; color: #00ffff; margin-bottom: 20px; }
.service-header p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; opacity: 0.9; }

/* Billing Toggle */
.billing-toggle { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.billing-option {
    padding: 10px 25px; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 25px;
    cursor: pointer; transition: all 0.3s ease;
}
.billing-option.active { background: linear-gradient(45deg, #00ffff, #0080ff); color: #000; font-weight: bold; }
.billing-option:hover:not(.active) { background: rgba(0, 255, 255, 0.2); }

/* Products */
.products-container { max-width: 1400px; margin: 60px auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.product-card {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8), rgba(0, 30, 60, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 20px; padding: 30px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.product-card.featured { border-color: #00ffff; box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); }
.product-card.featured::before {
    content: 'FEATURED'; position: absolute; top: 20px; right: -30px;
    background: linear-gradient(45deg, #00ffff, #0080ff); color: #000;
    padding: 5px 40px; transform: rotate(45deg); font-weight: bold; font-size: 0.8rem;
}
.product-card.upgrades-card {
    background: linear-gradient(135deg, rgba(80, 0, 80, 0.7), rgba(0, 40, 80, 0.7));
    border-color: rgba(200, 100, 255, 0.5);
}
.product-card.upgrades-card::before {
    content: 'UPGRADES'; background: linear-gradient(45deg, #c864ff, #6464ff); color: #fff;
}
.product-card.upgrades-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(200, 100, 255, 0.4); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0, 255, 255, 0.4); }
.product-card h3 { color: #00ffff; font-size: 1.8rem; margin-bottom: 15px; }
.product-card.upgrades-card h3 { color: #c864ff; }
.product-price { 
    font-size: 2.5rem; 
    color: #ffffff; 
    font-weight: bold; 
    margin: 20px 0; 
    line-height: 1;
    white-space: nowrap;
    display: block;
}
.product-price * {
    display: inline;
    white-space: nowrap;
}
.product-price .price-amount {
    display: inline;
}
.product-price .cycle { 
    font-size: 1rem; 
    color: rgba(255, 255, 255, 0.6); 
    display: inline;
    white-space: nowrap;
}
.product-description { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; min-height: 40px; }
.product-specs { list-style: none; margin: 25px 0; padding: 0; }
.product-specs li {
    padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between;
}
.product-specs li:last-child { border-bottom: none; }
.spec-label { color: rgba(255, 255, 255, 0.7); }
.spec-value { color: #00ffff; font-weight: bold; }
.upgrades-card .spec-value { color: #c864ff; }
.product-features { list-style: none; margin: 20px 0; padding: 0; }
.product-features li { padding: 8px 0; padding-left: 25px; position: relative; opacity: 0.9; }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: #00ffff; font-weight: bold; }
.upgrades-card .product-features li::before { content: '+'; color: #c864ff; }

/* Stock Badges */
.stock-badge { display: inline-block; padding: 5px 15px; border-radius: 15px; font-size: 0.85rem; margin: 10px 0; }
.in-stock { background: rgba(0, 255, 0, 0.2); border: 1px solid rgba(0, 255, 0, 0.5); color: #00ff00; }
.limited-stock { background: rgba(255, 165, 0, 0.2); border: 1px solid rgba(255, 165, 0, 0.5); color: #ffa500; }
.out-of-stock { background: rgba(255, 0, 0, 0.2); border: 1px solid rgba(255, 0, 0, 0.5); color: #ff0000; }

/* Buttons */
.add-to-cart-btn {
    width: 100%; padding: 15px; background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none; border-radius: 10px; color: #000; font-weight: bold; font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s ease; margin-top: 20px;
}
.add-to-cart-btn:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5); }
.add-to-cart-btn:disabled { background: rgba(128, 128, 128, 0.5); cursor: not-allowed; transform: none; }

/* Upgrades */
.upgrades-info {
    background: rgba(200, 100, 255, 0.1); border: 1px solid rgba(200, 100, 255, 0.3);
    border-radius: 10px; padding: 15px; margin-top: 20px; text-align: center;
}
.upgrades-info p { margin: 0; font-size: 0.95rem; opacity: 0.9; }

/* Floating Cart - positioned above chat widget */
.cart-float {
    position: fixed; bottom: 100px; right: 30px;
    background: linear-gradient(45deg, #00ffff, #0080ff); color: #000;
    padding: 15px 25px; border-radius: 50px; box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
    cursor: pointer; font-weight: bold; z-index: 999; transition: all 0.3s ease;
}
.cart-float:hover { transform: scale(1.1); }
.cart-count {
    background: #000; color: #00ffff; padding: 5px 10px;
    border-radius: 50%; margin-left: 10px; font-size: 0.9rem;
}

/* Dedicated Servers */
.dedicated-hero {
    padding: 150px 20px 80px; text-align: center;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.15), rgba(0, 30, 60, 0.15));
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}
.dedicated-hero h1 { font-size: 3.5rem; color: #00ffff; margin-bottom: 20px; text-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
.dedicated-hero .subtitle { font-size: 1.4rem; max-width: 900px; margin: 0 auto 40px; opacity: 0.95; line-height: 1.8; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 3rem; color: #00ffff; font-weight: bold; display: block; }
.hero-stat-label { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-top: 10px; }
.dedicated-container { max-width: 1600px; margin: 0 auto; padding: 60px 20px; }
.lineup-section { margin-bottom: 80px; }
.lineup-header { text-align: center; margin-bottom: 50px; }
.lineup-title {
    font-size: 2.5rem; color: #00ffff; margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 2px;
}
.lineup-subtitle { font-size: 1.2rem; opacity: 0.9; max-width: 800px; margin: 0 auto; }

/* Server Table */
.server-table-wrapper {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.6), rgba(0, 30, 60, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 20px;
    overflow: hidden; box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}
.server-table { width: 100%; border-collapse: collapse; }
.server-table thead { background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 128, 255, 0.15)); }
.server-table th {
    padding: 20px 15px; text-align: left; font-weight: 600; color: #00ffff; font-size: 1.05rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 1px;
}
.server-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; }
.server-table tbody tr:hover { background: rgba(0, 255, 255, 0.05); transform: scale(1.01); }
.server-table tbody tr.featured { background: rgba(0, 255, 255, 0.08); border-left: 4px solid #00ffff; }
.server-table td { padding: 25px 15px; vertical-align: middle; }
.server-name { font-size: 1.3rem; font-weight: bold; color: #00ffff; margin-bottom: 5px; }
.server-name .featured-badge {
    background: linear-gradient(45deg, #00ffff, #0080ff); color: #000;
    padding: 3px 10px; border-radius: 12px; font-size: 0.7rem;
    margin-left: 10px; font-weight: bold; letter-spacing: 1px;
}
.server-name .lease-badge {
    background: linear-gradient(45deg, #ffd700, #ff8c00); color: #000;
    padding: 3px 10px; border-radius: 12px; font-size: 0.7rem;
    margin-left: 10px; font-weight: bold; letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.spec-detail { color: rgba(255, 255, 255, 0.95); line-height: 1.8; font-size: 0.95rem; }
.spec-highlight { color: #00ffff; font-weight: 600; }
.price-cell { text-align: center; }
.price-cell .price-amount {
    font-size: 2.2rem; color: #00ffff; font-weight: bold;
    display: block; text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.price-cycle { color: rgba(255, 255, 255, 0.7); font-size: 1rem; display: block; margin-top: 5px; }
.action-cell { text-align: center; }
.order-btn {
    background: linear-gradient(45deg, #00ffff, #0080ff); color: #000;
    padding: 12px 30px; border: none; border-radius: 25px; font-weight: bold; font-size: 1.05rem;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    text-transform: uppercase; letter-spacing: 1px;
}
.order-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0, 255, 255, 0.6); }
.order-btn:disabled { background: rgba(128, 128, 128, 0.5); cursor: not-allowed; transform: none; box-shadow: none; }
.stock-indicator {
    display: inline-block; padding: 4px 12px; border-radius: 12px;
    font-size: 0.85rem; margin-top: 8px; font-weight: 600;
}

/* Benefits & Features */
.benefits-section {
    margin: 80px 0; background: linear-gradient(135deg, rgba(0, 20, 40, 0.6), rgba(0, 30, 60, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 20px; padding: 60px 40px;
}
.benefits-section h2 {
    text-align: center; font-size: 2.5rem; color: #00ffff; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px;
}
.benefits-section .section-subtitle { text-align: center; font-size: 1.2rem; opacity: 0.9; margin-bottom: 50px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; }
.benefits-grid .benefit-card { width: 100%; max-width: 400px; }
.benefit-card {
    background: rgba(0, 20, 40, 0.4); border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px; padding: 30px; transition: all 0.3s ease;
}
.benefit-card:hover { transform: translateY(-5px); border-color: #00ffff; box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3); }
.benefit-icon { font-size: 2.5rem; margin-bottom: 15px; }
.benefit-title { color: #00ffff; font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; }
.benefit-description { opacity: 0.9; line-height: 1.7; font-size: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 60px 0; }
.feature-card {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.6), rgba(0, 30, 60, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 15px; padding: 30px; transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: #00ffff; box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-title { color: #00ffff; font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; }
.feature-description { opacity: 0.9; line-height: 1.7; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3); border-radius: 20px;
    padding: 60px 40px; text-align: center; margin: 80px 0;
}
.cta-section h2 { font-size: 2.5rem; color: #00ffff; margin-bottom: 20px; }
.cta-section p {
    font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.cta-button {
    display: inline-block; background: linear-gradient(45deg, #00ffff, #0080ff); color: #000;
    padding: 18px 50px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1.2rem;
    transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    text-transform: uppercase; letter-spacing: 2px;
}
.cta-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 30px rgba(0, 255, 255, 0.6); }

/* Responsive */
@media (max-width: 1200px) {
    .cart-icon { position: static !important; transform: none !important; margin-left: auto; }
    .server-table-wrapper { overflow-x: auto; }
    .server-table { min-width: 900px; }
    .benefits-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .logo-image { height: 55px; }
    .login-btn { padding: 5px 12px !important; font-size: 0.9rem !important; }
    .service-header h1, .dedicated-hero h1 { font-size: 2.2rem; }
    .service-header p, .dedicated-hero .subtitle { font-size: 1.1rem; }
    .hero-stats { gap: 30px; }
    .hero-stat-number { font-size: 2rem; }
    .lineup-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
    .server-table th, .server-table td { padding: 15px 10px; font-size: 0.9rem; }
    .server-name { font-size: 1.1rem; }
    .price-amount { font-size: 1.8rem; }
    .benefits-grid, .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .logo-image { height: 45px; }
}
