/**
 * GPR Core Shortcodes Styles
 */

/* ==========================================================================
   Poster Name (Ruby)
   ========================================================================== */

.gpr-poster-name {
    display: inline-block;
    line-height: 1.2;
}

.gpr-poster-name ruby {
    ruby-align: center;
}

.gpr-poster-name rt {
    font-size: 14px;
    font-weight: normal;
}

/* ==========================================================================
   History List
   ========================================================================== */

.gpr-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gpr-history-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.gpr-history-date {
    flex-shrink: 0;
    width: 100px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.gpr-history-content {
    flex: 1;
}

.gpr-history-category {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    background: var(--gpr-primary, #3b82f6);
    color: #fff;
    border-radius: 10px;
}

/* Category color variations */
.gpr-history-category--education { background: #3b82f6; }
.gpr-history-category--career { background: #10b981; }
.gpr-history-category--council { background: #0ea5e9; }
.gpr-history-category--qualification { background: #f59e0b; }
.gpr-history-category--hobby { background: #ec4899; }
.gpr-history-category--family { background: #8b5cf6; }
.gpr-history-category--story { background: #6b7280; }

.gpr-history-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.gpr-history-summary {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.gpr-history-empty {
    color: #6b7280;
    font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
    .gpr-history-item {
        flex-direction: column;
        gap: 8px;
    }

    .gpr-history-date {
        width: auto;
    }
}

/* ==========================================================================
   SNS List
   ========================================================================== */

.gpr-sns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gpr-sns-list--icons {
    gap: 32px;
    justify-content: center;
}

.gpr-sns-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s, transform 0.2s;
}

.gpr-sns-item:hover {
    transform: translateY(-2px);
}

/* SNS Brand Colors (list / buttons style) */
.gpr-sns-list--list .gpr-sns-item--x,
.gpr-sns-list--list .gpr-sns-item--twitter,
.gpr-sns-list--buttons .gpr-sns-item--x,
.gpr-sns-list--buttons .gpr-sns-item--twitter {
    background: #000;
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--facebook,
.gpr-sns-list--buttons .gpr-sns-item--facebook {
    background: #1877f2;
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--instagram,
.gpr-sns-list--buttons .gpr-sns-item--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--youtube,
.gpr-sns-list--buttons .gpr-sns-item--youtube {
    background: #ff0000;
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--line,
.gpr-sns-list--buttons .gpr-sns-item--line {
    background: #00c300;
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--tiktok,
.gpr-sns-list--buttons .gpr-sns-item--tiktok {
    background: #000;
    color: #fff;
}

.gpr-sns-list--list .gpr-sns-item--threads,
.gpr-sns-list--buttons .gpr-sns-item--threads {
    background: #000;
    color: #fff;
}

.gpr-sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpr-sns-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   SNS Icons Style (app-icon style with label below)
   ========================================================================== */

.gpr-sns-list--icons .gpr-sns-item {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    color: #374151;
    border-radius: 0;
}

.gpr-sns-list--icons .gpr-sns-item:hover {
    transform: translateY(-3px);
}

.gpr-sns-list--icons .gpr-sns-icon svg {
    width: 48px;
    height: 48px;
}

.gpr-sns-list--icons .gpr-sns-label {
    display: block;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    text-align: center;
}

/* Icons style - brand colors on icon itself */
.gpr-sns-list--icons .gpr-sns-item--x .gpr-sns-icon,
.gpr-sns-list--icons .gpr-sns-item--twitter .gpr-sns-icon {
    color: #000;
}

.gpr-sns-list--icons .gpr-sns-item--facebook .gpr-sns-icon {
    color: #1877f2;
}

.gpr-sns-list--icons .gpr-sns-item--instagram .gpr-sns-icon {
    color: #e4405f;
}

.gpr-sns-list--icons .gpr-sns-item--youtube .gpr-sns-icon {
    color: #ff0000;
}

.gpr-sns-list--icons .gpr-sns-item--line .gpr-sns-icon {
    color: #06c755;
}

.gpr-sns-list--icons .gpr-sns-item--tiktok .gpr-sns-icon {
    color: #000;
}

.gpr-sns-list--icons .gpr-sns-item--threads .gpr-sns-icon {
    color: #000;
}

/* ==========================================================================
   Policy List
   ========================================================================== */

.gpr-policy-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gpr-policy-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gpr-policy-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.gpr-policy-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gpr-policy-content {
    flex: 1;
}

.gpr-policy-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.gpr-policy-subtitle {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--gpr-primary, #3b82f6);
    font-weight: 500;
}

.gpr-policy-summary {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.gpr-policy-details {
    margin: 8px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gpr-policy-detail-item {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    padding: 4px 0;
}

/* ==========================================================================
   Office List
   ========================================================================== */

.gpr-office-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gpr-office-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.gpr-office-item--main {
    border-left: 4px solid var(--gpr-primary, #3b82f6);
}

.gpr-office-name {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.gpr-office-address,
.gpr-office-tel,
.gpr-office-fax,
.gpr-office-email {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.gpr-office-label {
    font-weight: 500;
    margin-right: 8px;
}

.gpr-office-tel a,
.gpr-office-email a {
    color: var(--gpr-primary, #3b82f6);
    text-decoration: none;
}

.gpr-office-tel a:hover,
.gpr-office-email a:hover {
    text-decoration: underline;
}

.gpr-office-map {
    margin-top: auto;
    padding-top: 16px;
}

.gpr-office-map iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
}

/* ==========================================================================
   Link List
   ========================================================================== */

.gpr-link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gpr-link-list--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gpr-link-list--cols {
    display: grid;
    grid-template-columns: repeat(var(--gpr-link-columns, 2), 1fr);
    gap: 20px;
}

.gpr-link-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.gpr-link-item:hover {
    transform: translateY(-2px);
}

.gpr-link-list--cards .gpr-link-item {
    padding: 0;
    overflow: hidden;
}

.gpr-link-banner {
    overflow: hidden;
}

.gpr-link-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.gpr-link-list--cards .gpr-link-content {
    padding: 16px;
}

.gpr-link-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.gpr-link-description {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}
