/**
 * PC Patrol Contact Methods - Styles
 * Author: Chris van der Scheer
 */

.pcpc-contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pcpc-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Status Message */
.pcpc-status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.pcpc-status-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pcpc-status-text {
    margin: 0;
    font-weight: 500;
}

/* Status message variants */
.pcpc-status-quiet-msg {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pcpc-status-quiet-msg .pcpc-status-icon {
    color: #059669;
}

.pcpc-status-busy-msg {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pcpc-status-busy-msg .pcpc-status-icon {
    color: #d97706;
}

.pcpc-status-closed-msg {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pcpc-status-closed-msg .pcpc-status-icon {
    color: #dc2626;
}

.pcpc-contact-methods {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pcpc-contact-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.pcpc-contact-item:last-child {
    border-bottom: none;
}

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

/* Left section - Icon and name */
.pcpc-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.pcpc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcpc-icon svg {
    width: 24px;
    height: 24px;
}

.pcpc-icon-phone {
    background: #fef3c7;
    color: #d97706;
}

.pcpc-icon-email {
    background: #dbeafe;
    color: #2563eb;
}

.pcpc-icon-whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

.pcpc-method-info {
    min-width: 0;
}

.pcpc-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Center section - Status */
.pcpc-item-center {
    display: flex;
    align-items: center;
}

.pcpc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.pcpc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pcpc-status-open {
    color: #16a34a;
}

.pcpc-status-open .pcpc-status-dot {
    background-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.pcpc-status-closed {
    color: #dc2626;
}

.pcpc-status-closed .pcpc-status-dot {
    background-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Right section - CTA Button */
.pcpc-item-right {
    display: flex;
    align-items: center;
}

.pcpc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(248, 113, 113, 0.2);
    white-space: nowrap;
}

.pcpc-button:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 6px 12px rgba(248, 113, 113, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.pcpc-button:active {
    transform: translateY(0);
}

.pcpc-button-disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pcpc-button-disabled:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    transform: none;
    box-shadow: none;
}

.pcpc-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.pcpc-button:hover .pcpc-arrow {
    transform: translateX(4px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .pcpc-contact-item {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    
    .pcpc-item-center {
        grid-column: 1;
        grid-row: 2;
        margin-left: 64px;
    }
    
    .pcpc-item-right {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

@media screen and (max-width: 768px) {
    .pcpc-contact-wrapper {
        padding: 30px 16px;
    }
    
    .pcpc-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .pcpc-status-message {
        font-size: 14px;
        padding: 14px 16px;
        margin-bottom: 20px;
    }
    
    .pcpc-status-icon {
        width: 20px;
        height: 20px;
    }
    
    .pcpc-contact-item {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    
    .pcpc-item-left {
        gap: 12px;
    }
    
    .pcpc-icon {
        width: 40px;
        height: 40px;
    }
    
    .pcpc-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .pcpc-method-name {
        font-size: 15px;
    }
    
    .pcpc-item-center {
        grid-column: 1;
        grid-row: 2;
        margin-left: 52px;
    }
    
    .pcpc-status {
        font-size: 13px;
    }
    
    .pcpc-item-right {
        grid-column: 1;
        grid-row: 3;
    }
    
    .pcpc-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .pcpc-contact-wrapper {
        padding: 20px 12px;
    }
    
    .pcpc-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .pcpc-status-message {
        font-size: 13px;
        padding: 12px 14px;
        margin-bottom: 16px;
        gap: 10px;
    }
    
    .pcpc-status-icon {
        width: 18px;
        height: 18px;
    }
    
    .pcpc-contact-item {
        padding: 16px;
    }
    
    .pcpc-button {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pcpc-contact-wrapper {
        color: #f9fafb;
    }
    
    .pcpc-title {
        color: #f9fafb;
    }
    
    .pcpc-contact-methods {
        background: #1f2937;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .pcpc-contact-item {
        border-bottom-color: #374151;
    }
    
    .pcpc-contact-item:hover {
        background-color: #374151;
    }
    
    .pcpc-method-name {
        color: #f9fafb;
    }
}

/* Print styles */
@media print {
    .pcpc-button {
        background: #6b7280 !important;
    }
    
    .pcpc-contact-item:hover {
        background-color: transparent;
    }
}
