/* County Page Styles */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

* {
    box-sizing: border-box;
}

/* Full width header that extends edge to edge */
.full-width-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -3rem; /* Pull up to eliminate gap under navigation */
    position: relative;
    z-index: 10;
}

/* Centered content container */
.content-centered {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .content-centered {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .content-centered {
        padding: 0 2rem;
    }
}

/* County header specific styles */
.county-header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    position: relative;
    overflow: hidden;
}

.county-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 200px;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .county-header-content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        min-height: 180px;
        padding-bottom: 0;
    }
}

/* County logo */
.county-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .county-logo {
        width: 100px;
        height: 100px;
    }
}

/* County info */
.county-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .county-info {
        min-height: 120px;
        justify-content: flex-start;
        gap: 1rem;
    }
}

.county-name {
    font-size: 1.75rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .county-name {
        font-size: 2.25rem;
        margin-top: 2rem;
    }
}

.county-nickname {
    font-size: 1rem;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .county-nickname {
        font-size: 1.25rem;
    }
}

/* County badges */
.county-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .county-badges {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
}

.county-badge {
    background-color: #1e40af;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .county-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Sports codes section */
.sports-codes {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .sports-codes {
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
    }
}

.sports-codes h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #bfdbfe;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .sports-codes h3 {
        font-size: 1rem;
    }
}

.sports-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

@media (min-width: 768px) {
    .sports-badges {
        gap: 0.75rem;
        margin: 0.5rem 0;
    }
}

.sport-badge {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin: 0.125rem;
}

@media (min-width: 768px) {
    .sport-badge {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin: 0.125rem;
    }
}

.sport-badge i {
    margin-right: 0.25rem;
}

@media (min-width: 768px) {
    .sport-badge i {
        margin-right: 0.5rem;
    }
}

/* Sport badge colors - now handled by gaelic-codes.css */

/* Follow button */
.follow-button-container {
    margin-top: 1rem;
    align-self: stretch;
    width: 100%;
}

@media (min-width: 768px) {
    .follow-button-container {
        margin-top: 0;
        align-self: center;
        width: auto;
    }
}

.follow-button {
    width: 100%;
    background-color: #059669;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-height: 3rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .follow-button {
        width: auto;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 3rem;
    }
}

.follow-button:hover {
    background-color: #047857;
}

.follow-button.unfollow {
    background-color: #dc2626;
}

.follow-button.unfollow:hover {
    background-color: #b91c1c;
}

.follow-button i {
    margin-right: 0.5rem;
}

/* Main content area */
.county-content {
    padding: 1.5rem 0;
    margin-top: 0; /* Remove negative margin */
}

@media (min-width: 768px) {
    .county-content {
        padding: 2rem 0;
    }
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

/* Main content area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .main-content {
        gap: 2rem;
    }
}

/* Content cards */
.content-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.content-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .content-card-header {
        padding: 1.5rem 2rem;
    }
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

@media (min-width: 768px) {
    .content-card-title {
        font-size: 1.5rem;
    }
}

.content-card-body {
    padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .content-card-body {
        padding: 1.5rem 2rem;
    }
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sidebar {
        gap: 1.5rem;
    }
}

/* User list */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .user-list {
        gap: 0.75rem;
    }
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f9fafb;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

.user-role {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: capitalize;
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .activity-list {
        gap: 0.75rem;
    }
}

.activity-item {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f9fafb;
}

.activity-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsive text */
.responsive-text-sm {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .responsive-text-sm {
        font-size: 1rem;
    }
}

.responsive-text-lg {
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .responsive-text-lg {
        font-size: 1.25rem;
    }
}

/* Hidden elements for mobile */
.hidden-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hidden-mobile {
        display: inline;
    }
}

.hidden-desktop {
    display: inline;
}

/* Claim Status Indicator Styles */
.claim-status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.claim-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #22c55e;
    box-shadow: 0 1px 3px 0 rgba(34, 197, 94, 0.3);
}

.claim-button:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.4);
}

.claim-button i {
    font-size: 0.75rem;
}

.claimed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.claimed-badge i {
    color: #166534;
    font-size: 0.75rem;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pending-badge i {
    color: #92400e;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .claim-status-indicator {
        position: static;
        margin-top: 1rem;
        text-align: center;
    }

    .claim-button,
    .claimed-badge,
    .pending-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 640px) {
    .hidden-desktop {
        display: none;
    }
}
