/* ClubPro Search Plugin Styles */

:root {
    --clubpro-primary: #3b82f6;
    --clubpro-primary-hover: #2563eb;
    --clubpro-secondary: #10b981;
    --clubpro-danger: #ef4444;
    --clubpro-text-dark: #1f2937;
    --clubpro-text-light: #6b7280;
    --clubpro-border: #e5e7eb;
    --clubpro-bg-light: #f9fafb;
    --clubpro-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --clubpro-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Main Wrapper */
.clubpro-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.clubpro-search-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease;
}

.clubpro-icon {
    font-size: 3rem;
    color: var(--clubpro-primary);
    margin-bottom: 1rem;
}

.clubpro-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clubpro-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.clubpro-subtitle {
    font-size: 1.125rem;
    color: var(--clubpro-text-light);
    font-weight: 400;
}

/* Search Box */
.clubpro-search-box {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease;
}

.search-input-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--clubpro-shadow-lg);
    border: 2px solid var(--clubpro-border);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--clubpro-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--clubpro-shadow-lg);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clubpro-text-light);
    font-size: 1.125rem;
    pointer-events: none;
}

.clubpro-search-input {
    width: 100%;
    padding: 1.25rem 3.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--clubpro-text-dark);
    background: transparent;
    border-radius: 1rem;
}

.clubpro-search-input::placeholder {
    color: var(--clubpro-text-light);
}

.clear-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clubpro-text-light);
    cursor: pointer;
    font-size: 1.125rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.clear-icon.show {
    opacity: 1;
    pointer-events: auto;
}

.clear-icon:hover {
    color: var(--clubpro-danger);
}

/* Results Section */
.clubpro-results {
    min-height: 200px;
}

.clubpro-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--clubpro-text-light);
}

.clubpro-loading i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clubpro-primary);
}

.clubpro-loading p {
    font-size: 1rem;
    margin: 0;
}

.clubpro-no-results {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--clubpro-bg-light);
    border-radius: 1rem;
    animation: fadeIn 0.4s ease;
}

.clubpro-no-results i {
    font-size: 4rem;
    color: var(--clubpro-text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.clubpro-no-results h3 {
    font-size: 1.5rem;
    color: var(--clubpro-text-dark);
    margin-bottom: 0.5rem;
}

.clubpro-no-results p {
    color: var(--clubpro-text-light);
    margin: 0;
}

/* Club Grid */
.clubpro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.6s ease;
}

/* Club Card */
.clubpro-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--clubpro-shadow);
    border: 2px solid var(--clubpro-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.clubpro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clubpro-shadow-lg);
    border-color: var(--clubpro-primary);
}

.club-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--clubpro-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clubpro-bg-light);
}

.club-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clubpro-primary);
    font-size: 2rem;
}

.club-info {
    width: 100%;
}

.club-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--clubpro-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.club-location {
    font-size: 0.875rem;
    color: var(--clubpro-text-light);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.club-location i {
    font-size: 0.75rem;
}

.club-view-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--clubpro-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.club-view-btn:hover {
    background: var(--clubpro-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Modal */
.clubpro-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.clubpro-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clubpro-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.clubpro-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--clubpro-text-light);
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
}

.clubpro-modal-close:hover {
    color: var(--clubpro-danger);
    background: var(--clubpro-bg-light);
}

/* Club Details */
.clubpro-details {
    padding: 2rem;
}

.club-details-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--clubpro-border);
}

.club-details-logo {
    width: 100px;
    height: 100px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--clubpro-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clubpro-bg-light);
}

.club-details-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clubpro-primary);
    font-size: 2.5rem;
}

.club-details-title h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--clubpro-text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.club-details-title .location {
    font-size: 1rem;
    color: var(--clubpro-text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.club-details-section {
    margin-bottom: 2rem;
}

.club-details-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clubpro-text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.club-details-section h3 i {
    color: var(--clubpro-primary);
}

.club-details-section p {
    color: var(--clubpro-text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--clubpro-bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--clubpro-border);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--clubpro-primary);
    margin-top: 0.125rem;
}

.contact-item div {
    flex: 1;
}

.contact-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clubpro-text-light);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: var(--clubpro-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-item a:hover {
    color: var(--clubpro-primary-hover);
    text-decoration: underline;
}

.contact-item.full-width {
    grid-column: 1 / -1;
}

.club-details-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--clubpro-border);
}

.clubpro-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.clubpro-btn-primary {
    background: var(--clubpro-primary);
    color: white;
}

.clubpro-btn-primary:hover {
    background: var(--clubpro-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.clubpro-btn-secondary {
    background: white;
    color: var(--clubpro-primary);
    border-color: var(--clubpro-primary);
}

.clubpro-btn-secondary:hover {
    background: var(--clubpro-bg-light);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .clubpro-title {
        font-size: 2rem;
    }
    
    .clubpro-search-input {
        padding: 1rem 3rem;
        font-size: 0.875rem;
    }
    
    .clubpro-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .club-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .club-details-title h2 {
        font-size: 1.5rem;
    }
    
    .club-details-title .location {
        justify-content: center;
    }
    
    .club-details-actions {
        flex-direction: column;
    }
    
    .clubpro-details {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .clubpro-search-wrapper {
        padding: 1.5rem 0.75rem;
    }
    
    .clubpro-title {
        font-size: 1.75rem;
    }
    
    .clubpro-subtitle {
        font-size: 1rem;
    }
    
    .clubpro-grid {
        grid-template-columns: 1fr;
    }
}

/* List Shortcode Styles */
.clubpro-list-wrapper .clubpro-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.clubpro-list-wrapper .clubpro-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.clubpro-list-wrapper .clubpro-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .clubpro-list-wrapper .clubpro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .clubpro-list-wrapper .clubpro-grid {
        grid-template-columns: 1fr !important;
    }
}
