/* 
   Main Stylesheet for BaggyBlue Clone - Minecraft Server Hosting
*/

:root {
    --primary-color: #006aff;
    --primary-dark: #0044ff;
    --primary-light: #0044ff;
    --secondary-color: #536dfe;
    --dark-color: #121212;
    --light-color: #f8f9fc;
    --minecraft-bg: #121212;
    --minecraft-accent: #00c853;
    --card-bg: #1e1e1e;
    --border-color: #333333;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background-color: var(--minecraft-bg);
    overflow-x: hidden;
}

.minecraft-theme {
    background-color: var(--minecraft-bg);
    color: white;
}

section {
    padding: 80px 0;
}

/* Package Cards */
.package-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Pricing Toggle */
.pricing-toggle .btn-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
}

.pricing-toggle .btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-toggle .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pricing-toggle .btn:not(.active):hover {
    background-color: #f5f5f5;
}

/* Package Prices */
.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.package-price span {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

/* Location Modal */
.location-modal {
    background-color: var(--dark-color);
    color: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-modal .modal-header {
    background-color: var(--dark-color);
    padding: 20px 30px;
}

.location-modal .modal-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.location-modal .modal-body {
    padding: 20px 30px 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.location-item {
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.location-item:hover {
    transform: translateY(-5px);
    background-color: rgba(40, 40, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.location-item.best {
    border: 2px solid var(--primary-color);
}

.location-item.best::after {
    content: 'Best';
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 0 0 10px 0;
}

.location-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(255, 252, 252, 0.2);
}

.location-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: center;
}

.location-domain {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.location-ping {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

#regenerate-ping-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#regenerate-ping-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
}

/* Top Bar */
.top-bar {
    background-color: #000;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

/* Currency Selector */
.currency-selector {
    position: relative;
}

.currency-selector .form-select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    padding: 4px 24px 4px 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.currency-selector .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    outline: none;
}

.currency-selector .form-select option {
    background-color: #121212;
    color: white;
}

.btn-signup {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 15px 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-brand img {
    height: 35px;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.jpg.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 120px 0 150px;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.85));
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-rating {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.hero-rating .stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-right: 10px;
}

.hero-rating .text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-server-preview {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.server-name {
    font-weight: 600;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 600;
    color: white;
}

.console-line {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.feature-mini {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.feature-mini i {
    color: var(--primary-color);
}

.feature-mini {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.server-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.server-card {
    background-color: #242442;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.server-header {
    background-color: #2d2d52;
    padding: 15px;
    color: white;
}

.server-type {
    font-weight: 700;
    font-size: 20px;
}

.server-ram {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.server-body {
    padding: 20px;
}

.server-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

.server-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.location-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px;
    font-size: 12px;
}

/* Game Panel Section */
.game-panel-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.game-panel .container {
    position: relative;
    z-index: 1;
}

.game-panel h2 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    font-size: 2.5rem;
    color: white;
}

.game-panel .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.2);
    background-color: var(--primary-color);
    color: white;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

.feature-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.panel-screenshot {
    margin-top: 50px;
}

/* Pricing Section */
.pricing-section {
    background-color: white;
    padding: 80px 0;
}

.btn-server-type {
    background-color: #ffffff;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-server-type.active,
.btn-server-type:hover {
    background-color: var(--primary-color);
    color: white;
}

.package-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 254, 254, 0.3);
    border-color: var(--primary-color);
}

.package-header {
    background-color: rgba(0, 200, 83, 0.1);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.package-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.package-icon-alt {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.package-ram {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
    font-weight: 700;
}

.package-body {
    padding: 20px;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.package-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #ffffff;
}

.package-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 30px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    font-weight: 600;
    padding: 20px;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 20px;
    background-color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

footer ul li {
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .server-preview {
        margin-top: 40px;
    }
    
    .package-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .feature-mini {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .panel-screenshot img {
        max-width: 100%;
    }
}
