/* ANG Prophecies - Compact Clean Design with Bulma */

/* Custom color scheme */
:root {
    --primary-color: #2d5016;
    --primary-light: #4a7c59;
    --primary-dark: #1a3009;
}

/* Hero section customization - more compact */
.hero.is-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.hero.is-small .hero-body {
    padding: 2rem 1.5rem;
}

/* More compact containers */
.container {
    max-width: 1000px;
}


.card-header {
    padding-left: 0.75rem;
}
.card-header-title {
    padding-left: 0.75rem;
    font-weight: 600;
}


/* Progress bar animations and styling */
.progress {
    transition: value 0.3s ease;
    height: 0.5rem;
}

.progress.is-small {
    height: 0.4rem;
}

/* Form styling - clean and minimal */
.input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(45, 80, 22, 0.25);
}

.label.is-small {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Compact field spacing */
.field:not(:last-child) {
    margin-bottom: 1rem;
}

/* Button enhancements */
.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.is-loading::after {
    border-color: transparent transparent white white;
}

/* Notification animations */
.notification {
    animation: slideIn 0.3s ease-out;
}

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

/* Results section animation */
#results {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Goal breakdown styling - more compact */
.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-type {
    font-weight: 500;
    font-size: 0.9rem;
}

.goal-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Compact team display */
.title.is-5 {
    margin-bottom: 0.25rem !important;
}

.subtitle.is-7 {
    margin-bottom: 0.5rem !important;
}

/* Compact simulation box */
.box.is-light {
    padding: 1rem;
}

.box.is-light .title.is-6 {
    margin-bottom: 0.25rem !important;
}

.box.is-light .subtitle.is-7 {
    margin-bottom: 0 !important;
}

/* Compact columns */
.columns.is-gapless {
    margin-left: 0;
    margin-right: 0;
}

.columns.is-gapless > .column {
    padding: 0.25rem;
}

/* Tags styling */
.tag.is-primary {
    background-color: var(--primary-color);
}

.tag.is-warning {
    background-color: #ffdd57;
}

.tag.is-info {
    background-color: #3273dc;
}

/* Mobile responsiveness - more compact */
@media screen and (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    .title.is-3 {
        font-size: 1.75rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .hero.is-small .hero-body {
        padding: 1.5rem 1rem;
    }
}

/* Footer compact */
.footer {
    background-color: #fafafa;
    padding: 2rem 1.5rem;
}

/* Progress bar color customization */
.progress.is-primary::-webkit-progress-value {
    background-color: var(--primary-color);
}

.progress.is-primary::-moz-progress-bar {
    background-color: var(--primary-color);
}

/* Loading state improvements */
.button.is-loading {
    color: transparent !important;
}

/* VS styling */
.is-size-3 {
    font-weight: 300;
    opacity: 0.6;
}

/* Compact spacing utilities */
.mb-4 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

/* Clean field groupings */
.field .progress {
    margin-top: 0.25rem;
}

/* Enhanced content readability */
.content h5.title.is-6 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

/* Inline form styling for labels and inputs */
.field .columns.is-vcentered {
    margin-bottom: 0;
}

.field .columns.is-vcentered .column.is-narrow label {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
}

.field .columns.is-vcentered .column.is-narrow .label {
    margin-bottom: 0;
    text-align: left;
    padding-right: 0;
    width: 100%;
}

/* Football icon styling */
.icon-text .icon {
    margin-right: 0.5rem;
}

/* Probability bars row layout */
.columns.is-mobile > .column .field {
    margin-bottom: 0;
}

.columns.is-mobile > .column .label.has-text-centered {
    margin-bottom: 0.5rem;
}

.columns.is-mobile > .column .progress {
    margin-bottom: 0;
}

/* Sticky footer layout */
html, body {
    height: 100%;
}

.site {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background-color: #000000 !important;
    color: white;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
}

.site-footer .content p {
    color: white;
}

.site-footer .footer-link {
    color: #4a7c59;
    text-decoration: underline;
}

.site-footer .footer-link:hover {
    color: #2d5016;
}


/* Unified probability bar */
.unified-probability-bar {
    display: flex;
    height: 2rem;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.probability-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    min-width: 1%;
}

.team1-segment {
    background-color: var(--primary-color); /* Match the is-primary tag */
}

.tie-segment {
    background-color: #ffdd57; /* Bulma is-warning color */
}

.team2-segment {
    background-color: #3273dc; /* Bulma is-info color */
}

.probability-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tie-segment .probability-text {
    color: #333;
    text-shadow: none;
}

.probability-segment:hover .probability-text {
    opacity: 1;
}

/* Probability labels spacing */
.probability-labels {
    margin-bottom: 0.5rem;
}

.probability-labels .label {
    margin-bottom: 0.25rem;
}

/* Mobile form adjustments - keep inline even on mobile */
@media screen and (max-width: 768px) {

    .card-header {
        padding-left: 0;
    }

    .field .columns.is-vcentered .column.is-narrow label{
        text-align: left;
        width: 100px;
        max-width: 100px;
        min-width: 100px;
    }

    .unified-probability-bar {
        height: 1.5rem;
    }

    .probability-text {
        font-size: 0.65rem;
    }
}
