/**
 * Simple Reward Calculator - Frontend Styles
 */

/* Content Wrapper */
.src-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.src-content-wrapper h1,
.src-content-wrapper h2,
.src-content-wrapper h3,
.src-content-wrapper h4,
.src-content-wrapper h5,
.src-content-wrapper h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.src-content-wrapper h1:first-child,
.src-content-wrapper h2:first-child,
.src-content-wrapper h3:first-child {
    margin-top: 0;
}

.src-content-wrapper p {
    margin-bottom: 1em;
    line-height: 1;
}

.src-content-wrapper ul,
.src-content-wrapper ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.src-content-wrapper li {
    margin-bottom: 0.5em;
}

.src-content-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Columns Layout */
.src-content-wrapper .src-columns {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.src-content-wrapper .src-column {
    flex: 1;
    min-width: 0;
}

/* Table - no border */
.src-content-wrapper .src-table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.src-content-wrapper .src-table td,
.src-content-wrapper .src-table th {
    border: none;
    padding: 10px;
}

.src-content-wrapper .src-table th {
    font-weight: 600;
}

/* Score display */
.src-content-wrapper .src-score {
    display: inline-block;
    font-weight: bold;
    color: inherit;
}

/* Text Icon display */
.src-content-wrapper .src-texticon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.src-content-wrapper .src-texticon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.src-content-wrapper .src-texticon-label {
    font-size: inherit;
    color: inherit;
}

/* Currency Input display */
.src-content-wrapper .src-currency-input {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.src-content-wrapper .src-currency-input .src-currency-symbol {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    flex-shrink: 0;
}

.src-content-wrapper .src-currency-input .src-currency-field {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: inherit;
    text-align: right;
}

.src-content-wrapper .src-currency-input .src-currency-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Spent display */
.src-content-wrapper .src-spent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.src-content-wrapper .src-spent .src-spent-symbol {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    flex-shrink: 0;
}

.src-content-wrapper .src-spent .src-spent-value {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Progress Bar display */
.src-content-wrapper .src-progress-bar {
    display: block;
    margin: 20px 0;
    padding: 10px 0;
}

.src-content-wrapper .src-progress-bar .src-bar-track {
    display: block;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
}

.src-content-wrapper .src-progress-bar .src-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.src-content-wrapper .src-progress-bar .src-bar-indicator {
    display: block;
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: #ff9800;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateX(-50%);
    left: 0%;
    transition: left 0.3s ease;
}

.src-content-wrapper .src-progress-bar .src-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: inherit;
    color: inherit;
}

.src-content-wrapper .src-progress-bar .src-bar-start {
    font-weight: inherit;
    color: inherit;
}

.src-content-wrapper .src-progress-bar .src-bar-end {
    font-weight: inherit;
    color: inherit;
}

/* Separator display - no border on frontend */
.src-content-wrapper .src-separator {
    display: block;
    height: 30px;
    width: 100%;
    margin: 10px 0;
}

/* Font size rules based on data-fontsize attribute */
.src-content-wrapper [data-fontsize="xs"] { font-size: 12px; }
.src-content-wrapper [data-fontsize="s"] { font-size: 14px; }
.src-content-wrapper [data-fontsize="m"] { font-size: 16px; }
.src-content-wrapper [data-fontsize="l"] { font-size: 24px; }
.src-content-wrapper [data-fontsize="xl"] { font-size: 48px; }
.src-content-wrapper [data-fontsize="xxl"] { font-size: 80px; }

/* Responsive */
@media (max-width: 600px) {
    .src-content-wrapper {
        padding: 15px;
    }

    .src-content-wrapper .src-columns {
        flex-direction: column;
        gap: 15px;
    }

    /* Responsive font sizes for mobile */
    .src-content-wrapper [data-fontsize="xs"] { font-size: 10px; }
    .src-content-wrapper [data-fontsize="s"] { font-size: 12px; }
    .src-content-wrapper [data-fontsize="m"] { font-size: 14px; }
    .src-content-wrapper [data-fontsize="l"] { font-size: 18px; }
    .src-content-wrapper [data-fontsize="xl"] { font-size: 32px; }
    .src-content-wrapper [data-fontsize="xxl"] { font-size: 48px; }
}
