/* Say Hola Wealth Theme - Teal & Coral, Culturally-Rooted Elegance */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS custom properties for consistent theming */
:root {
    --teal-900: #015456;
    --teal-700: #01686C;
    --teal-500: #1A8A8E;
    --teal-200: #BADADB;
    --teal-100: #E6F3F3;
    --coral-600: #E8604F;
    --coral-500: #FF705E;
    --coral-400: #FF8F80;
    --coral-100: #FFF0ED;
    --cream: #FFFAF7;
    --warm-white: #FAF8F5;
    --warm-grey: #B8B3AA;
    --text-on-dark: #F5F3EF;
}

/* Global warm background */
body {
    background: var(--cream) !important;
    color: var(--teal-700) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
    box-shadow: 0 2px 20px rgba(1, 104, 108, 0.15);
    border-bottom: 2px solid var(--coral-500);
    min-height: 4.5rem;
}

.title {
    color: #01686C;
    font-family: 'Playfair Display', Georgia, serif !important;
    padding-bottom: 0.5rem;
}

h3.title {
    padding-bottom: 1.3rem;
}

.title.has-text-white {
    color: var(--cream) !important;
}

.subtitle {
    color: var(--teal-500);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.notification.is-info.is-light {
    background-color: var(--teal-100);
    border: 1px solid rgba(1, 104, 108, 0.15);
    box-shadow: 0 4px 16px rgba(1, 104, 108, 0.06);
    color: var(--teal-700);
    border-radius: 12px;
}

/* Main header section */
.issuer-header, .box {
    background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-900) 100%);
    color: var(--text-on-dark);
    margin-bottom: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 32px rgba(1, 84, 86, 0.2);
    padding: 3rem 0;
}

/* Light text for elements inside dark containers */
.issuer-header .subtitle,
.box .subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.issuer-header .title,
.box .title {
    color: #FFFFFF !important;
}

.issuer-header p,
.box p,
.issuer-header span,
.box span,
.issuer-header label,
.box label,
.issuer-header small,
.box small {
    color: var(--text-on-dark);
}

.issuer-header a,
.box a {
    color: var(--text-on-dark);
}

.issuer-header a:hover,
.box a:hover {
    color: var(--coral-500);
}

.issuer-header h1,
.issuer-header h2,
.issuer-header h3,
.issuer-header h4,
.issuer-header h5,
.issuer-header h6,
.box h1,
.box h2,
.box h3,
.box h4,
.box h5,
.box h6 {
    color: #FFFFFF !important;
}

.issuer-header .has-text-grey,
.box .has-text-grey,
.issuer-header .has-text-grey-dark,
.box .has-text-grey-dark {
    color: rgba(255, 255, 255, 0.65) !important;
}

.issuer-header .tag,
.box .tag {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-on-dark);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tags outside dark containers */
.tag.is-info {
    background-color: var(--teal-100) !important;
    color: var(--teal-700) !important;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Subtle light overlay for depth */
.issuer-header::before, .box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Coral accent line at bottom */
.issuer-header::after, .box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--coral-500), var(--coral-400), var(--coral-500), transparent);
    z-index: 1;
    border-radius: 3px;
}

/* Profile avatar */
.issuer-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #FFFFFF;
    box-shadow: 0 0 0 3px var(--coral-500), 0 8px 24px rgba(1, 84, 86, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
}

.issuer-avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px var(--coral-400), 0 12px 32px rgba(1, 84, 86, 0.35);
}

/* Primary filled button */
.button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.button:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
}

/* Bulma is-primary overrides to use teal */
.button.is-primary {
    background-color: var(--teal-700) !important;
    border-color: var(--teal-700) !important;
    color: #FFFFFF !important;
}

.button.is-primary:hover {
    background-color: var(--teal-900) !important;
    border-color: var(--teal-900) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 84, 86, 0.3);
}

.button.is-primary.is-outlined {
    background-color: transparent !important;
    border-color: var(--teal-700) !important;
    color: var(--teal-700) !important;
}

.button.is-primary.is-outlined:hover {
    background-color: var(--teal-700) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 104, 108, 0.25);
}

/* Small outlined buttons (e.g., Recipients) */
.button.is-small.is-outlined {
    background-color: var(--coral-500);
    border: 0px solid var(--teal-700);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
}

.button.is-small.is-outlined:hover {
    background-color: var(--coral-600);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1, 104, 108, 0.2);
}

/* Statistics container */
.issuer-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Stat cards */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.75rem;
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral-500);
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.35rem;
    font-weight: 600;
}

/* Badge grid layout */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 480px) {
    .media-content {
        padding: 5px;
        text-align: center;
        overflow-x: none;
    }
    
    .media-content .tags {
        justify-content: center;
    }
    
    .media-content .button,
    .media-content .mb-3 {
        text-align: center;
    }
}

.media-right {
    padding-right: 20px;
}

/* Badge cards */
.badge-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1, 104, 108, 0.06);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
    max-width: 100%;
    border: 1px solid rgba(1, 104, 108, 0.1);
    position: relative;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 112, 94, 0.08), transparent);
    transition: left 0.5s;
}

.badge-card:hover::before {
    left: 100%;
}

.badge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(1, 104, 108, 0.12);
    border-color: rgba(1, 104, 108, 0.2);
}

/* Badge image area */
.badge-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(1, 104, 108, 0.06);
}

/* Badge text content */
.badge-content {
    padding: 1.5rem;
    color: var(--teal-700);
}

.badge-content .title {
    color: var(--teal-700) !important;
    margin-bottom: 0.75rem !important;
}

.badge-content .subtitle {
    color: #4A6B6D !important;
    line-height: 1.6;
    font-size: 0.9rem !important;
}

.badge-content .level {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(1, 104, 108, 0.08);
}

/* Follower cards */
.follower-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(1, 104, 108, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(1, 104, 108, 0.08);
    position: relative;
    overflow: hidden;
    color: var(--teal-700);
}

.follower-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #01686C, #FF705E, #01686C);
}

.follower-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(1, 104, 108, 0.1);
    border-color: rgba(1, 104, 108, 0.2);
}

/* Social links container */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Individual social links */
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    color: var(--text-on-dark);
    cursor: pointer;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 112, 94, 0.4), transparent);
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: scale(1.1);
    border-color: var(--coral-500);
    background: rgba(255, 112, 94, 0.15);
    box-shadow: 0 0 12px rgba(255, 112, 94, 0.3);
}

/* Headings - serif for main titles, sans-serif for smaller */
h1, h2 {
    color: #01686C !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600;
}

h3, h4, h5, h6 {
    color: #01686C !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
}

/* Links */
a {
    color: var(--teal-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--coral-500);
}

a:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Button styling */
.btn {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    border: none;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 112, 94, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, var(--coral-600) 0%, var(--coral-500) 100%);
    box-shadow: 0 6px 20px rgba(255, 112, 94, 0.4);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-white);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-700);
    border-radius: 4px;
    border: 2px solid var(--warm-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal-500);
}

/* Selection styling */
::selection {
    background: rgba(255, 112, 94, 0.2);
    color: var(--teal-700);
}

/* Section spacing */
.section {
    padding: 2.5rem 1.5rem;
}

/* Level header alignment */
.level.mb-5 {
    align-items: center;
}

/* Footer - match brand palette */
.footer {
    background-color: var(--teal-100) !important;
    border-top: 1px solid rgba(1, 104, 108, 0.1);
}

.footer-links a {
    color: var(--teal-700) !important;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--coral-500) !important;
}

.footer-text {
    color: var(--teal-500) !important;
}

/* Follower avatar initial circle */
.follower-card .is-rounded {
    border-radius: 50% !important;
    background-color: var(--teal-700) !important;
    font-family: 'Inter', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .issuer-stats {
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-card {
        min-width: 0;
        width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .issuer-avatar {
        width: 100px;
        height: 100px;
        display: block;
        margin: 0 auto;
    }
    
    .issuer-header .column.is-narrow {
        text-align: center;
    }
    
    .social-links {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
}
