/* GCO Auto Content Widgets Styles */

.gco-auto-widget {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gco-auto-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #f59e0b 0%, #d97706 100%) 1;
}

.gco-auto-widget .widget-title svg {
    color: #f59e0b;
}

/* Video Widget Styles */
.gco-video-widget .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gco-video-widget .video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.gco-video-widget .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gco-video-widget .video-thumbnail {
    position: relative;
    display: block;
    padding-top: 56.25%;
    background: #f3f4f6;
    overflow: hidden;
}

.gco-video-widget .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gco-video-widget .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gco-video-widget .video-info {
    padding: 12px;
}

.gco-video-widget .video-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.gco-video-widget .video-info h4 a {
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gco-video-widget .video-info h4 a:hover {
    color: #f59e0b;
}

.gco-video-widget .video-date {
    font-size: 12px;
    color: #6b7280;
}

/* Phone Widget Styles */
.gco-phone-widget .phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gco-phone-widget .phone-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.gco-phone-widget .phone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gco-phone-widget .phone-thumbnail {
    position: relative;
    display: block;
    padding-top: 100%;
    background: #f3f4f6;
    overflow: hidden;
}

.gco-phone-widget .phone-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gco-phone-widget .no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d1d5db;
}

.gco-phone-widget .phone-info {
    padding: 12px;
}

.gco-phone-widget .phone-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.gco-phone-widget .phone-info h4 a {
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gco-phone-widget .phone-info h4 a:hover {
    color: #f59e0b;
}

.gco-phone-widget .phone-brand {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.gco-phone-widget .phone-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.gco-phone-widget .phone-specs span {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Apps Widget Styles */
.gco-apps-widget .apps-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gco-apps-widget .app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
    min-height: 160px;
}

.gco-apps-widget .app-item:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.gco-apps-widget .app-item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
}

.gco-apps-widget .app-item .app-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex: 1;
}

.gco-apps-widget .app-item .app-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.gco-apps-widget .app-item:hover .app-button {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: scale(1.05);
}

.gco-apps-widget .app-item .app-button svg {
    transition: transform 0.2s;
}

.gco-apps-widget .app-item:hover .app-button svg {
    transform: translateX(2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gco-auto-widget {
        padding: 16px;
        margin: 24px 0;
        border-radius: 8px;
    }
    
    .gco-auto-widget .widget-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .gco-video-widget .video-grid,
    .gco-phone-widget .phone-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
.gco-apps-widget .apps-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gco-apps-widget .app-item {
        padding: 12px 8px;
    }
    
    .gco-apps-widget .app-item img {
        width: 48px;
        height: 48px;
    }
    
.gco-apps-widget .app-item .app-name {
        font-size: 12px;
        min-height: 32px;
    }
    
    .gco-apps-widget .app-item .app-button {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .gco-video-widget .video-grid,
    .gco-phone-widget .phone-grid {
        grid-template-columns: 1fr;
    }
}
