/* 
 * Bitcoin Page CSS for Pasifika.xyz
 * Fully responsive design with Pasifika.xyz branding
 * Using Pasifika orange color scheme
 */

:root {
    --orange: #FF6B35;
    --orange-light: #FF9800;
    --orange-dark: #E64A19;
    --dark-grey: #333333;
    --medium-grey: #444444;
    --light-grey: #f8f8f8;
    --white: #FFFFFF;
    --black: #000000;
    --card-bg: #f8f8f8;
    --section-bg: #ffffff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--orange-light);
    color: white;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--dark-grey);
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('bitcoin.png') no-repeat center center, url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,30 m-25,0 a25,25 0 1,0 50,0 a25,25 0 1,0 -50,0' fill='none' stroke='rgba(255,87,34,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    background-size: 400px, 60px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--light-grey);
    position: relative;
    z-index: 1;
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Navigation */
.pasifika-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: rgba(34, 34, 34, 0.8);
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pasifika-nav a {
    color: var(--orange-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.pasifika-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.pasifika-nav a:hover::after {
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background-color: rgba(51, 51, 51, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Cpath d='M30,5 L55,30 L30,55 L5,30 z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px;
    background-repeat: repeat;
    background-position: center center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--orange));
    z-index: 2;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: calc(50% - 20px);
    width: 40px;
    height: 20px;
    background-color: var(--orange);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 1;
}

.bitcoin-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h1.main-title {
    font-size: 3rem;
    background: linear-gradient(to right, var(--orange-light), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--medium-grey);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--light-grey);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    background: linear-gradient(45deg, var(--orange) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Sections */
.section {
    background-color: var(--medium-grey);
    color: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--orange);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.1);
    opacity: 0.5;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.1);
    opacity: 0.5;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--orange-light);
    padding-bottom: 15px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--orange-light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

h3 {
    color: var(--orange-light);
    font-size: 1.6rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

p {
    margin-bottom: 20px;
    color: var(--light-grey);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.property-card {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--medium-grey) 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M75,50 C75,65 65,75 50,75 C35,75 25,65 25,50 C25,35 35,25 50,25 C65,25 75,35 75,50 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3C/svg%3E") no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

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

.property-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--orange-light);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.property-title {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    font-weight: 600;
    color: var(--orange-light);
}

.property-description {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

.bitcoin-rating {
    margin-top: auto;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffdd00;
    margin-bottom: 5px;
}

.rating-stars .star {
    color: var(--orange);
    font-size: 1.2rem;
    margin-right: 2px;
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.3);
}

.rating-stars .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.rating-text {
    color: var(--orange-light);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
    font-weight: 500;
}

/* Supply Chart */
.supply-chart {
    background-color: var(--dark-grey);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-grey);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-light), var(--orange));
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

/* Halving Timeline */
.halving-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    position: relative;
}

.halving-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--orange-light), var(--orange));
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.halving-event {
    background-color: var(--dark-grey);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid var(--orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--light-grey);
}

.halving-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.15);
}

.halving-year {
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 10px;
}

.halving-reward {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.highlight {
    background: linear-gradient(120deg, var(--orange), var(--orange-light));
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(255, 107, 53, 0.3);
}

/* Mining Difficulty */
.mining-difficulty {
    background-color: var(--dark-grey);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--orange);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-grey);
}

.difficulty-meter {
    background: rgba(0, 0, 0, 0.2);
    height: 20px;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.difficulty-level {
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    height: 100%;
    width: 85%;
    border-radius: 10px;
}

/* Information Boxes */
.success {
    background-color: #2d2d2d;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-grey);
}

.success h3 {
    color: var(--orange);
    margin-top: 0;
}

.warning {
    background-color: #2d2d2d;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--orange-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-grey);
}

.warning h3 {
    color: var(--orange-dark);
    margin-top: 0;
}

.simple-terms {
    background-color: #2d2d2d;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--orange-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-grey);
}

.simple-terms h3 {
    color: var(--orange);
    margin-top: 0;
}

/* Links */
a {
    color: var(--orange-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    z-index: 1000;
}

.dropdown-button {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    margin-bottom: 8px;
    text-align: center;
}

.dropdown-button:hover {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-grey);
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 8px;
    margin-top: 5px;
    left: 0;
    overflow: hidden;
    border: 2px solid var(--orange);
}

.dropdown-content a {
    color: var(--white);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--medium-grey);
    color: var(--orange-light);
    padding-left: 25px;
}

/* Show the dropdown menu */
.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Learn More Section specific styling */
.learn-more-section {
    margin: 30px 0;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    background-color: #222222;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--orange);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: shimmer 3s infinite;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(247,147,30,0.15)'%3E%3Cpath d='M75,20 L90,50 L120,60 L90,70 L75,100 L60,70 L30,60 L60,50 z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .bitcoin-logo {
        height: 60px !important;
        width: auto;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .halving-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .pasifika-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pasifika-nav a {
        margin: 5px 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .halving-timeline {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .section {
        margin-bottom: 20px;
    }
    
    .bitcoin-logo {
        height: 50px !important;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}
