/* player_attribute.css — forked from honours_awarded.css (visual values unchanged) */

.player-attribute-page {
    --primary-color: #091c3a;
    --background-light: #f4f7fa;
    --background-dark: #050f1f;
    --accent-gradient: linear-gradient(135deg, #112d55 0%, #06142a 100%);
    --highlight-color: #bebebe;

    min-height: 100vh;
    padding-bottom: 48px;
    background-color: var(--background-light);
    color: #374151;
    font-family: 'Exo', sans-serif;
    font-size: 14px;
}

.player-attribute-page,
.player-attribute-page *,
.player-attribute-page *::before,
.player-attribute-page *::after {
    box-sizing: border-box;
}

.player-attribute-page h1,
.player-attribute-page h2,
.player-attribute-page h3,
.player-attribute-page h4,
.player-attribute-page h5,
.player-attribute-page h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.player-attribute-page .player-attribute-header-row {
    margin-top: 24px;
    margin-bottom: 16px;
}

.player-attribute-page .panel-link {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.1s;
}

.player-attribute-page .panel-link:active {
    transform: scale(0.95);
}

.player-attribute-page .player-attribute-controls-panel:active,
.player-attribute-page .player-attribute-index-panel:active {
    transform: none;
}

.player-attribute-page .panel-link:hover {
    text-decoration: none;
}

.player-attribute-page .panel-link .bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(9, 28, 58, 0.85);
    transition: background-color 0.2s;
}

.player-attribute-page .panel-link:hover .bg-overlay {
    background-color: rgba(9, 28, 58, 0.65);
}

.player-attribute-page .header-content,
.player-attribute-page .sub-header-content,
.player-attribute-page .panel-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.player-attribute-page .header-content {
    min-height: 85%;
}

.player-attribute-page .sub-header-content {
    min-height: 0;
    padding: 0;
}

.player-attribute-page .panel-lg {
    min-height: 200px;
}

.player-attribute-page .panel-md {
    min-height: 176px;
}

.player-attribute-page .panel-sm {
    min-height: 100px;
}

.player-attribute-page .player-attribute-header-panel {
    min-height: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-attribute-page .header-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.player-attribute-page .sub-header-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.player-attribute-page .panel-divider {
    width: 48px;
    height: 2px;
    margin: 8px 0;
    background-color: #ffffff;
    margin-bottom: 24px;
}

.player-attribute-page .search-panel-standout {
    border: 2px solid var(--primary-color) !important;
    background: var(--primary-color) !important;
    box-shadow: 0 10px 25px -5px rgba(9, 28, 58, 0.3) !important;
}

.player-attribute-page .search-panel-standout .panel-content {
    border-color: rgba(226, 173, 54, 0.2) !important;
}

.player-attribute-page .player-attribute-controls-content {
    width: 100%;
    min-height: 0;
    align-items: stretch;
    justify-content: center;
    text-align: left;
}

.player-attribute-page .player-attribute-controls-row {
    margin-right: -8px;
    margin-left: -8px;
}

.player-attribute-page .player-attribute-controls-row > div {
    padding-right: 8px;
    padding-left: 8px;
}

.player-attribute-page .player-attribute-control-label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-attribute-page .player-attribute-sort-select {
    color: var(--primary-color);
    font-weight: 500;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: none;
}

.player-attribute-page .player-attribute-sort-select:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 173, 54, 0.2);
}

.player-attribute-page .search-box-custom {
    position: relative;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.player-attribute-page .search-box-custom .glyphicon {
    display: none !important;
}

.player-attribute-page .player-attribute-sort-select,
.player-attribute-page .search-box-custom input {
    height: 44px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.player-attribute-page .search-box-custom input {
    padding: 6px 12px 6px 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: var(--primary-color);
    font-weight: 500;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    box-shadow: none;
}

.player-attribute-page .search-box-custom input:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(226, 173, 54, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23091c3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

/* Index panel — visual match to honours, plus the sticky behaviour kept from milestone */
.player-attribute-page .player-attribute-index-panel {
    min-height: 100px;
    margin-top: 8px;
    margin-bottom: 20px;
    background-color: var(--primary-color);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 8px;
    z-index: 100;
}

.player-attribute-page .player-attribute-index-content {
    min-height: 0;
    padding: 20px 16px;
}

.player-attribute-page .player-attribute-index-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-attribute-page .player-attribute-index-panel .panel-divider {
    margin: 8px 0 12px;
}

.player-attribute-page .player-attribute-index-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
}

.player-attribute-page .panel-badge {
    display: inline-block;
    padding: 8px 16px;
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.player-attribute-page .panel-badge:hover,
.player-attribute-page .panel-badge:focus {
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    outline: none;
    transform: translateY(-1px);
}

.player-attribute-page .player-attribute-result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 18px;
    margin: 8px 0 16px;
    background-color: #ffffff;
    border-left: 4px solid var(--highlight-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(9, 28, 58, 0.08);
}

.player-attribute-page .player-attribute-result-term {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.player-attribute-page .player-attribute-result-count {
    display: inline-block;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: var(--primary-color);
    border-radius: 16px;
}

.player-attribute-page .player-attribute-group {
    margin-bottom: 28px;
    scroll-margin-top: 110px;
}

.player-attribute-page .player-attribute-group-heading {
    padding-bottom: 8px;
    margin: 24px 0 12px;
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--highlight-color);
}

/* Player cards — visual equivalent of the milestone card design */
.player-attribute-page .panel-default.player-attribute-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.player-attribute-page .player-attribute-card-heading {
    background-color: #091C3A;
    color: #fff;
    padding: 15px;
    border-radius: 4px 4px 0 0;
    font-size: 20px;
    border-color: #091C3A;
}

.player-attribute-page .player-attribute-card-heading strong {
    color: #fff;
}

.player-attribute-page .player-attribute-card-body {
    padding: 15px;
    flex: 1;
}

.player-attribute-page .player-attribute-stat {
    margin-bottom: 10px;
    font-size: 20px;
}

.player-attribute-page .player-attribute-honours-label {
    font-weight: bold;
}

.player-attribute-page .player-attribute-honours-list {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 20px;
}

.player-attribute-page .player-attribute-honours-list > li {
    font-size: 16px;
}

/* Grid spacing — cards in each group */
.player-attribute-page #attributeResults .row {
    display: flex;
    flex-wrap: wrap;
}

.player-attribute-page .player-attribute-card-col {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
    display: flex;
}

.player-attribute-page .player-attribute-state {
    padding: 28px 20px;
    margin-top: 8px;
    color: #6b7280;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(9, 28, 58, 0.06);
}

.player-attribute-page .player-attribute-state-error {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.player-attribute-page .player-attribute-empty {
    padding: 22px 18px;
    color: #6b7280;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .player-attribute-page .header-content h2 {
        font-size: 52px;
    }

    .player-attribute-page .sub-header-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .player-attribute-page {
        font-size: 14px;
    }

    .player-attribute-page .player-attribute-header-panel {
        min-height: 160px;
    }

    .player-attribute-page .search-box-custom input {
        width: 100% !important;
    }

    .player-attribute-page .player-attribute-header-row {
        margin-top: 16px;
    }

    .player-attribute-page .header-content h2 {
        font-size: 32px;
    }

    .player-attribute-page .sub-header-content h2 {
        font-size: 20px;
    }

    .player-attribute-page .player-attribute-controls-row > div {
        margin-bottom: 12px;
    }

    .player-attribute-page .player-attribute-controls-row > div:last-child {
        margin-bottom: 0;
    }

    .player-attribute-page .player-attribute-group-heading {
        margin-top: 20px;
        font-size: 22px;
    }

    .player-attribute-page .player-attribute-result-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
