/**
 * FootGoal Football Birthday Widget Styles
 * Styled specifically for Gillion Theme Design System (#f63a4c accent)
 * Compact Widget Dimensions (~320px - 340px)
 */

.footgoal-birthday-box {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin: 20px auto;
    font-family: inherit;
    max-width: 340px;
    width: 100%;
    box-sizing: border-box;
    color: #232323;
}

body.dark .footgoal-birthday-box,
.dark-mode .footgoal-birthday-box {
    background: #1e1e1e;
    border-color: #2d2d2d;
    color: #f0f0f0;
}

/* Header */
.fg-bday-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

body.dark .fg-bday-header,
.dark-mode .fg-bday-header {
    border-bottom-color: #2d2d2d;
}

.fg-bday-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fg-bday-icon {
    font-size: 24px;
    line-height: 1;
}

.fg-bday-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1e;
    letter-spacing: -0.3px;
}

body.dark .fg-bday-title,
.dark-mode .fg-bday-title {
    color: #ffffff;
}

.fg-bday-date {
    font-size: 12px;
    color: #f63a4c;
    font-weight: 600;
    margin-top: 1px;
    display: block;
}

/* Nav Controls */
.fg-bday-nav {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.fg-bday-btn {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.fg-bday-btn:hover {
    background: #f1f5f9;
    color: #1e1e1e;
    border-color: #d1d5db;
}

body.dark .fg-bday-btn,
.dark-mode .fg-bday-btn {
    background: #2a2a2a;
    border-color: #383838;
    color: #d4d4d4;
}

body.dark .fg-bday-btn:hover,
.dark-mode .fg-bday-btn:hover {
    background: #333333;
    color: #ffffff;
}

.fg-bday-btn-today {
    background: #f63a4c;
    border-color: #f63a4c;
    color: #ffffff;
}

.fg-bday-btn-today:hover {
    background: #e02435;
    border-color: #e02435;
    color: #ffffff;
}

body.dark .fg-bday-btn-today,
.dark-mode .fg-bday-btn-today {
    background: #f63a4c;
    border-color: #f63a4c;
    color: #ffffff;
}

body.dark .fg-bday-btn-today:hover,
.dark-mode .fg-bday-btn-today:hover {
    background: #e02435;
}

/* Player Cards Stack */
.fg-bday-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
    transition: opacity 0.2s ease;
}

.fg-bday-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.fg-bday-card:hover {
    background: #ffffff;
    border-color: #ffd2d6;
    box-shadow: 0 3px 10px rgba(246, 58, 76, 0.08);
}

body.dark .fg-bday-card,
.dark-mode .fg-bday-card {
    background: #252525;
    border-color: #333333;
}

body.dark .fg-bday-card:hover,
.dark-mode .fg-bday-card:hover {
    background: #2a2a2a;
    border-color: #f63a4c;
}

.fg-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f63a4c 0%, #d82b3d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(246, 58, 76, 0.25);
}

.fg-player-info {
    flex: 1;
    min-width: 0;
}

.fg-player-name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark .fg-player-name,
.dark-mode .fg-player-name {
    color: #ffffff;
}

.fg-player-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.fg-badge-age {
    background: #fff1f2;
    color: #f63a4c;
    border: 1px solid #ffe4e6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
}

body.dark .fg-badge-age,
.dark-mode .fg-badge-age {
    background: rgba(246, 58, 76, 0.15);
    border-color: rgba(246, 58, 76, 0.3);
    color: #ff6b7b;
}

.fg-meta-country {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

body.dark .fg-meta-country,
.dark-mode .fg-meta-country {
    color: #a1a1aa;
}

.fg-card-body {
    padding-top: 2px;
}

.fg-club-pos {
    font-size: 11px;
    color: #475569;
    line-height: 1.3;
}

body.dark .fg-club-pos,
.dark-mode .fg-club-pos {
    color: #cbd5e1;
}

.fg-club-pos strong {
    color: #1e1e1e;
}

body.dark .fg-club-pos strong,
.dark-mode .fg-club-pos strong {
    color: #f1f5f9;
}

.fg-achievement {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    font-style: italic;
}

body.dark .fg-achievement,
.dark-mode .fg-achievement {
    color: #94a3b8;
}

.fg-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.fg-share-link {
    font-size: 10.5px;
    color: #f63a4c;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    transition: all 0.15s ease;
}

.fg-share-link:hover {
    background: #f63a4c;
    color: #ffffff;
    border-color: #f63a4c;
}

body.dark .fg-share-link,
.dark-mode .fg-share-link {
    background: rgba(246, 58, 76, 0.12);
    border-color: rgba(246, 58, 76, 0.25);
    color: #ff6b7b;
}

body.dark .fg-share-link:hover,
.dark-mode .fg-share-link:hover {
    background: #f63a4c;
    color: #ffffff;
}

/* Loading & Empty states */
.fg-bday-loading,
.fg-bday-empty {
    text-align: center;
    padding: 14px 10px;
    font-size: 12px;
    color: #64748b;
}

/* Footer & Backlink */
.fg-bday-footer {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

body.dark .fg-bday-footer,
.dark-mode .fg-bday-footer {
    border-top-color: #2d2d2d;
}

.fg-btn-embed {
    background: transparent;
    border: 1px dashed #d1d5db;
    color: #4b5563;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.fg-btn-embed:hover {
    border-color: #f63a4c;
    color: #f63a4c;
    background: #fff8f8;
}

body.dark .fg-btn-embed,
.dark-mode .fg-btn-embed {
    border-color: #404040;
    color: #a3a3a3;
}

body.dark .fg-btn-embed:hover,
.dark-mode .fg-btn-embed:hover {
    border-color: #f63a4c;
    color: #f63a4c;
    background: rgba(246, 58, 76, 0.1);
}

.fg-bday-credit {
    font-size: 10.5px;
    color: #64748b;
}

body.dark .fg-bday-credit,
.dark-mode .fg-bday-credit {
    color: #a1a1aa;
}

.fg-bday-credit a {
    color: #f63a4c;
    text-decoration: none;
    font-weight: 700;
}

.fg-bday-credit a:hover {
    text-decoration: underline;
}

/* Embed panel popup */
.fg-embed-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

body.dark .fg-embed-panel,
.dark-mode .fg-embed-panel {
    background: #232323;
    border-color: #333333;
}

.fg-embed-panel h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: #1e1e1e;
}

body.dark .fg-embed-panel h4,
.dark-mode .fg-embed-panel h4 {
    color: #ffffff;
}

.fg-embed-panel p {
    font-size: 10.5px;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

body.dark .fg-embed-panel p,
.dark-mode .fg-embed-panel p {
    color: #94a3b8;
}

.fg-embed-code-box {
    width: 100%;
    height: 52px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: monospace;
    font-size: 10px;
    padding: 5px;
    box-sizing: border-box;
    resize: none;
    color: #1e293b;
}

body.dark .fg-embed-code-box,
.dark-mode .fg-embed-code-box {
    background: #18181b;
    border-color: #3f3f46;
    color: #e4e4e7;
}

.fg-bday-btn-copy {
    background: #f63a4c;
    border-color: #f63a4c;
    color: #ffffff;
    font-size: 10.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.fg-bday-btn-copy:hover {
    background: #e02435;
    color: #ffffff;
}
